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
- TemplateControlParser.cs
- HwndHostAutomationPeer.cs
- PeerNameRegistration.cs
- XmlSchemaRedefine.cs
- BindingCollectionElement.cs
- sqlnorm.cs
- PolyBezierSegmentFigureLogic.cs
- AppSecurityManager.cs
- HandleRef.cs
- LineSegment.cs
- DataGridViewImageColumn.cs
- FieldMetadata.cs
- TripleDESCryptoServiceProvider.cs
- EnvironmentPermission.cs
- TextSelectionProcessor.cs
- LicFileLicenseProvider.cs
- Soap12ServerProtocol.cs
- ResXDataNode.cs
- FileSecurity.cs
- XmlDocumentFragment.cs
- VisualTreeHelper.cs
- SliderAutomationPeer.cs
- ServiceSecurityAuditBehavior.cs
- WebConfigurationManager.cs
- BitmapEffectDrawingContextState.cs
- WorkflowServiceBehavior.cs
- TemplateControlParser.cs
- CurrentChangedEventManager.cs
- handlecollector.cs
- PrimitiveSchema.cs
- EmptyStringExpandableObjectConverter.cs
- PathSegmentCollection.cs
- RootAction.cs
- SystemTcpStatistics.cs
- SiteMapNodeCollection.cs
- StorageEntityTypeMapping.cs
- BooleanProjectedSlot.cs
- ErrorFormatterPage.cs
- TextElementEditingBehaviorAttribute.cs
- HGlobalSafeHandle.cs
- METAHEADER.cs
- BaseParaClient.cs
- ComponentResourceManager.cs
- TextEditorTables.cs
- WindowClosedEventArgs.cs
- PageAction.cs
- ExtensibleSyndicationObject.cs
- PageHandlerFactory.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- HwndAppCommandInputProvider.cs
- OleCmdHelper.cs
- WhitespaceRule.cs
- SqlBuffer.cs
- NativeWindow.cs
- Soap.cs
- ApplicationId.cs
- XmlLangPropertyAttribute.cs
- NativeWindow.cs
- Thickness.cs
- serverconfig.cs
- RangeValuePatternIdentifiers.cs
- EventBuilder.cs
- RectConverter.cs
- Behavior.cs
- DateBoldEvent.cs
- StringDictionaryWithComparer.cs
- CurrentChangedEventManager.cs
- VerificationException.cs
- DataObjectFieldAttribute.cs
- SqlBulkCopyColumnMapping.cs
- ReachVisualSerializer.cs
- MarginCollapsingState.cs
- DataControlLinkButton.cs
- XPathNavigatorReader.cs
- OperationPickerDialog.designer.cs
- ArrayList.cs
- SqlConnectionManager.cs
- CursorInteropHelper.cs
- InheritanceAttribute.cs
- Endpoint.cs
- WebEncodingValidator.cs
- AdRotator.cs
- AdPostCacheSubstitution.cs
- XmlCharCheckingWriter.cs
- CultureSpecificCharacterBufferRange.cs
- XmlComplianceUtil.cs
- RootDesignerSerializerAttribute.cs
- ProviderBase.cs
- Brush.cs
- IteratorAsyncResult.cs
- _LocalDataStore.cs
- SerialStream.cs
- SolidBrush.cs
- CompareInfo.cs
- GPPOINT.cs
- AssociatedControlConverter.cs
- FilterUserControlBase.cs
- FormsAuthentication.cs
- CodeEventReferenceExpression.cs
- ListBoxAutomationPeer.cs