Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / MS / Internal / Permissions / RightsManagementPermission.cs / 1 / RightsManagementPermission.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Rights Managment Permission. // It is a class for permission that will be asserted/demanded internally. // Only DocumentApplication (or Mongoose) code will assert these permissions. // // Using it allows the following: // We can have very specific targeted asserts for enabling Rights Management. // This is to provide a granular permissio for Rights Management to be used // by DocumentApplication to enable Encrypted Documents scenarios in Partial Trust // rather than asserting broader permission such as Unmanaged Code // // !!!! Warning !!!!: No code other than DocumentApplication (or Mongoose) should assert this // permission without agreement from this code owners. // // History: // 09/12/05 : younggk - Created //--------------------------------------------------------------------------- using System; using System.Text; using System.Security; using System.Security.Permissions; using System.Windows; using MS.Internal.WindowsBase; namespace MS.Internal.Permissions { // !!!! Warning !!!!: No code other than DocumentApplication (or Mongoose) should assert this // permission without agreement from this code owners. [FriendAccessAllowed] internal class RightsManagementPermission : InternalPermissionBase { public RightsManagementPermission() : base() { } public override IPermission Copy() { // There is no state: just return a new instance of RightsManagementPermission return new RightsManagementPermission(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Rights Managment Permission. // It is a class for permission that will be asserted/demanded internally. // Only DocumentApplication (or Mongoose) code will assert these permissions. // // Using it allows the following: // We can have very specific targeted asserts for enabling Rights Management. // This is to provide a granular permissio for Rights Management to be used // by DocumentApplication to enable Encrypted Documents scenarios in Partial Trust // rather than asserting broader permission such as Unmanaged Code // // !!!! Warning !!!!: No code other than DocumentApplication (or Mongoose) should assert this // permission without agreement from this code owners. // // History: // 09/12/05 : younggk - Created //--------------------------------------------------------------------------- using System; using System.Text; using System.Security; using System.Security.Permissions; using System.Windows; using MS.Internal.WindowsBase; namespace MS.Internal.Permissions { // !!!! Warning !!!!: No code other than DocumentApplication (or Mongoose) should assert this // permission without agreement from this code owners. [FriendAccessAllowed] internal class RightsManagementPermission : InternalPermissionBase { public RightsManagementPermission() : base() { } public override IPermission Copy() { // There is no state: just return a new instance of RightsManagementPermission return new RightsManagementPermission(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _ReceiveMessageOverlappedAsyncResult.cs
- ObservableCollectionDefaultValueFactory.cs
- ArcSegment.cs
- Canvas.cs
- PageSetupDialog.cs
- HttpListenerRequestTraceRecord.cs
- FixedSOMPageElement.cs
- PaperSize.cs
- XXXInfos.cs
- TransportationConfigurationTypeInstallComponent.cs
- Inflater.cs
- SqlErrorCollection.cs
- NoneExcludedImageIndexConverter.cs
- Transform3D.cs
- FromRequest.cs
- CookielessHelper.cs
- CachedFontFace.cs
- KeyboardDevice.cs
- EmissiveMaterial.cs
- AutoScrollHelper.cs
- XmlHelper.cs
- MDIWindowDialog.cs
- BufferBuilder.cs
- MimeObjectFactory.cs
- ImageDrawing.cs
- HatchBrush.cs
- DependencyProperty.cs
- HotCommands.cs
- DbDeleteCommandTree.cs
- ShutDownListener.cs
- XmlChildEnumerator.cs
- ProxyWebPartManager.cs
- ping.cs
- CqlWriter.cs
- Win32SafeHandles.cs
- ParseNumbers.cs
- PtsPage.cs
- GlyphCollection.cs
- SByteStorage.cs
- SmtpReplyReaderFactory.cs
- FlowDocumentScrollViewer.cs
- Preprocessor.cs
- UriExt.cs
- FontFamilyValueSerializer.cs
- TablePattern.cs
- Pens.cs
- TdsParserSessionPool.cs
- ParenthesizePropertyNameAttribute.cs
- GradientSpreadMethodValidation.cs
- ProxyWebPart.cs
- httpapplicationstate.cs
- FlowDocument.cs
- ContextBase.cs
- ZipPackagePart.cs
- BitmapEffectInputData.cs
- TextDecorationCollection.cs
- LocatorGroup.cs
- AuthenticationModuleElementCollection.cs
- ChannelManagerBase.cs
- ScrollItemPattern.cs
- WindowsScrollBarBits.cs
- ObjectHandle.cs
- CachedTypeface.cs
- SingleTagSectionHandler.cs
- CultureInfo.cs
- TextStore.cs
- HtmlInputFile.cs
- PartialArray.cs
- glyphs.cs
- OwnerDrawPropertyBag.cs
- AuthStoreRoleProvider.cs
- SettingsSection.cs
- TripleDES.cs
- DesigntimeLicenseContextSerializer.cs
- DocumentSequence.cs
- BinaryObjectReader.cs
- CompositeDuplexBindingElementImporter.cs
- DataListItemEventArgs.cs
- RotationValidation.cs
- ContentPlaceHolder.cs
- ToolStripRendererSwitcher.cs
- AmbiguousMatchException.cs
- SapiGrammar.cs
- UnsafeNetInfoNativeMethods.cs
- ReadOnlyCollectionBuilder.cs
- DataGridColumnsPage.cs
- XamlFilter.cs
- InProcStateClientManager.cs
- ArrayElementGridEntry.cs
- ConvertersCollection.cs
- TrackingWorkflowEventArgs.cs
- TableRowCollection.cs
- UInt16Storage.cs
- VisualBasic.cs
- PiiTraceSource.cs
- DataGridViewComboBoxColumn.cs
- StickyNoteAnnotations.cs
- WhitespaceRule.cs
- NameValueSectionHandler.cs
- ObfuscateAssemblyAttribute.cs