Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- ResourcesBuildProvider.cs
- MLangCodePageEncoding.cs
- _UriSyntax.cs
- Int32Converter.cs
- DataControlFieldCollection.cs
- DataGridViewIntLinkedList.cs
- HighContrastHelper.cs
- BufferModesCollection.cs
- BuilderElements.cs
- TextCollapsingProperties.cs
- DefaultAssemblyResolver.cs
- SiteMapNodeCollection.cs
- SecurityUtils.cs
- FormsAuthenticationUserCollection.cs
- XmlQuerySequence.cs
- Bezier.cs
- DispatchProxy.cs
- DataTransferEventArgs.cs
- XmlNamespaceManager.cs
- ItemAutomationPeer.cs
- XmlCustomFormatter.cs
- MobileErrorInfo.cs
- Effect.cs
- MgmtConfigurationRecord.cs
- ProtocolsInstallComponent.cs
- DesignOnlyAttribute.cs
- HeaderPanel.cs
- TableDetailsRow.cs
- DbMetaDataFactory.cs
- EntityDataSourceChangingEventArgs.cs
- CustomAssemblyResolver.cs
- ICollection.cs
- CommandManager.cs
- UserControlParser.cs
- DynamicMethod.cs
- __ConsoleStream.cs
- ApplyHostConfigurationBehavior.cs
- CapabilitiesUse.cs
- QilVisitor.cs
- FrameworkElement.cs
- TraceContextRecord.cs
- BitmapFrameEncode.cs
- AssertSection.cs
- FormViewDeleteEventArgs.cs
- COM2ExtendedBrowsingHandler.cs
- Control.cs
- WebBrowserSiteBase.cs
- HwndKeyboardInputProvider.cs
- XmlSchemaSimpleTypeList.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- MsmqAppDomainProtocolHandler.cs
- XmlSchemaSimpleTypeUnion.cs
- IndexOutOfRangeException.cs
- CodeNamespaceImport.cs
- TablePatternIdentifiers.cs
- FragmentQueryProcessor.cs
- VirtualizedContainerService.cs
- MediaSystem.cs
- HyperlinkAutomationPeer.cs
- TableItemProviderWrapper.cs
- LinearKeyFrames.cs
- HttpWrapper.cs
- _SslSessionsCache.cs
- UnmanagedMemoryAccessor.cs
- Int16Storage.cs
- KerberosRequestorSecurityToken.cs
- Errors.cs
- basenumberconverter.cs
- Comparer.cs
- BamlBinaryWriter.cs
- TransactionInterop.cs
- MachineSettingsSection.cs
- SerializationAttributes.cs
- WorkflowApplicationCompletedEventArgs.cs
- OdbcParameter.cs
- ECDsa.cs
- HtmlSelect.cs
- VBIdentifierDesigner.xaml.cs
- HttpHandlersSection.cs
- CodeDirectiveCollection.cs
- LayoutEvent.cs
- InputReferenceExpression.cs
- SecurityHeaderTokenResolver.cs
- MsdtcClusterUtils.cs
- GlobalEventManager.cs
- BitmapEditor.cs
- WebPartAuthorizationEventArgs.cs
- ManifestResourceInfo.cs
- EventProperty.cs
- PrintPreviewControl.cs
- SynchronousReceiveElement.cs
- FunctionParameter.cs
- AdjustableArrowCap.cs
- SelectingProviderEventArgs.cs
- WebBrowserBase.cs
- ResXResourceSet.cs
- EntityDataSourceWrapperCollection.cs
- PolyLineSegmentFigureLogic.cs
- ValidationEventArgs.cs
- EmptyWorkItem.cs