Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Permissions / RightsManagementPermission.cs / 1305600 / 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class RightsManagementPermission : InternalParameterlessPermissionBase { public RightsManagementPermission() : this(PermissionState.Unrestricted) { } public RightsManagementPermission(PermissionState state): base(state) { } 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
- TypeSystem.cs
- AsymmetricKeyExchangeDeformatter.cs
- UserCancellationException.cs
- ManualWorkflowSchedulerService.cs
- RangeValueProviderWrapper.cs
- ContractInferenceHelper.cs
- BamlBinaryWriter.cs
- Condition.cs
- SettingsBase.cs
- StrongTypingException.cs
- FrameworkObject.cs
- TypeHelpers.cs
- ObjectStateFormatter.cs
- AnonymousIdentificationSection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Viewport3DAutomationPeer.cs
- HttpCachePolicy.cs
- CodeNamespaceImportCollection.cs
- VarInfo.cs
- GroupPartitionExpr.cs
- Camera.cs
- ScaleTransform.cs
- NamedObject.cs
- SafeNativeMethods.cs
- Thickness.cs
- DesignerActionUIService.cs
- PageThemeBuildProvider.cs
- DiscoveryOperationContext.cs
- DirtyTextRange.cs
- QilInvokeLateBound.cs
- FactoryGenerator.cs
- OperationContextScope.cs
- AutoGeneratedField.cs
- HttpModuleAction.cs
- PageAsyncTaskManager.cs
- StreamingContext.cs
- ContextMarshalException.cs
- ExternalException.cs
- IConvertible.cs
- ChildrenQuery.cs
- WindowsFormsHelpers.cs
- PublishLicense.cs
- InnerItemCollectionView.cs
- SqlXmlStorage.cs
- CompoundFileStreamReference.cs
- BamlBinaryWriter.cs
- shaperfactoryquerycachekey.cs
- DependencyPropertyAttribute.cs
- AuthenticateEventArgs.cs
- CannotUnloadAppDomainException.cs
- MetadataException.cs
- KeyedCollection.cs
- XmlDigitalSignatureProcessor.cs
- ClrPerspective.cs
- CodeSubDirectoriesCollection.cs
- AstNode.cs
- DesignerInterfaces.cs
- ColumnBinding.cs
- NativeMethodsCLR.cs
- FieldBuilder.cs
- SelectionRangeConverter.cs
- SQLChars.cs
- DrawListViewItemEventArgs.cs
- DESCryptoServiceProvider.cs
- Group.cs
- UnsafePeerToPeerMethods.cs
- SqlRemoveConstantOrderBy.cs
- FailedToStartupUIException.cs
- EnumConverter.cs
- MenuTracker.cs
- TableLayoutRowStyleCollection.cs
- KeyNotFoundException.cs
- PointConverter.cs
- ByteKeyFrameCollection.cs
- MatrixKeyFrameCollection.cs
- AssemblyCache.cs
- CalendarTable.cs
- AssociationSet.cs
- Content.cs
- WebServicesDescriptionAttribute.cs
- TableProvider.cs
- sqlmetadatafactory.cs
- CodeAccessPermission.cs
- XmlnsCompatibleWithAttribute.cs
- WebEventTraceProvider.cs
- ProcessHost.cs
- MissingManifestResourceException.cs
- _ServiceNameStore.cs
- _ProxyChain.cs
- FileNotFoundException.cs
- AuditLogLocation.cs
- WizardSideBarListControlItem.cs
- XmlResolver.cs
- WebPartConnectionsCloseVerb.cs
- SecurityCriticalDataForSet.cs
- MissingSatelliteAssemblyException.cs
- propertyentry.cs
- ObjectHandle.cs
- DataColumn.cs
- TreeViewImageKeyConverter.cs