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
- SpotLight.cs
- SqlProvider.cs
- JsonReaderWriterFactory.cs
- FileInfo.cs
- CqlParser.cs
- CodeFieldReferenceExpression.cs
- SourceFilter.cs
- thaishape.cs
- SoapIgnoreAttribute.cs
- SymbolEqualComparer.cs
- BrowsableAttribute.cs
- ComponentResourceKey.cs
- LineInfo.cs
- Metadata.cs
- VBIdentifierName.cs
- PropertyInfo.cs
- PinnedBufferMemoryStream.cs
- counter.cs
- AuthenticationService.cs
- HttpRequest.cs
- SqlFileStream.cs
- SiteMapNodeItem.cs
- Console.cs
- StringConcat.cs
- RelationshipDetailsCollection.cs
- StringValidatorAttribute.cs
- WmlControlAdapter.cs
- DataSourceCache.cs
- WindowsPrincipal.cs
- NumericUpDown.cs
- SignatureGenerator.cs
- SecurityUtils.cs
- IsolatedStorage.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- DetailsViewModeEventArgs.cs
- ReadOnlyTernaryTree.cs
- WSFederationHttpBindingElement.cs
- EditingCommands.cs
- SafeMILHandle.cs
- AuthorizationRule.cs
- HttpsHostedTransportConfiguration.cs
- DataGridViewDataErrorEventArgs.cs
- WebReferencesBuildProvider.cs
- PageEventArgs.cs
- ComponentSerializationService.cs
- ActivityExecutionContextCollection.cs
- DrawingContextWalker.cs
- DataGridColumnEventArgs.cs
- RegisteredScript.cs
- StreamReader.cs
- XmlWrappingReader.cs
- DataControlField.cs
- SqlDataSourceCache.cs
- LocalFileSettingsProvider.cs
- InternalsVisibleToAttribute.cs
- UIElementIsland.cs
- SQLStringStorage.cs
- SQLInt32Storage.cs
- StylusButton.cs
- ControlPaint.cs
- CodeSubDirectory.cs
- DrawToolTipEventArgs.cs
- HtmlWindowCollection.cs
- NameTable.cs
- IgnoreSectionHandler.cs
- Util.cs
- ImageListImageEditor.cs
- TextDecorationCollectionConverter.cs
- StoreAnnotationsMap.cs
- DependencyPropertyHelper.cs
- ServiceX509SecurityTokenProvider.cs
- GPRECT.cs
- Thumb.cs
- DesignSurfaceCollection.cs
- RijndaelManagedTransform.cs
- Scalars.cs
- ConfigurationException.cs
- FileLogRecord.cs
- SpecularMaterial.cs
- SynchronizationFilter.cs
- BindingFormattingDialog.cs
- BaseTemplateBuildProvider.cs
- HandlerFactoryWrapper.cs
- PublishLicense.cs
- XhtmlConformanceSection.cs
- DataServiceQueryOfT.cs
- DataRowChangeEvent.cs
- EventLogger.cs
- InternalRelationshipCollection.cs
- ScrollData.cs
- X509InitiatorCertificateClientElement.cs
- SAPIEngineTypes.cs
- OdbcFactory.cs
- HttpConfigurationSystem.cs
- X500Name.cs
- RegexMatch.cs
- Keyboard.cs
- SiteMapNodeItemEventArgs.cs
- FilterElement.cs
- ListViewGroupConverter.cs