Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SafeCancelMibChangeNotify.cs
- FileDialog_Vista_Interop.cs
- TemplateField.cs
- UdpRetransmissionSettings.cs
- GlyphRunDrawing.cs
- JsonObjectDataContract.cs
- FixedSOMLineRanges.cs
- QilPatternVisitor.cs
- ReferencedAssembly.cs
- SystemException.cs
- LocalizedNameDescriptionPair.cs
- DataViewSetting.cs
- DataGridPagerStyle.cs
- BypassElementCollection.cs
- XmlCDATASection.cs
- List.cs
- GB18030Encoding.cs
- CompilerInfo.cs
- BrowserTree.cs
- CompressEmulationStream.cs
- ListViewAutomationPeer.cs
- WebReferencesBuildProvider.cs
- InstanceNotFoundException.cs
- ObjectPropertyMapping.cs
- ButtonAutomationPeer.cs
- AlgoModule.cs
- SrgsOneOf.cs
- DataSourceConverter.cs
- OdbcEnvironmentHandle.cs
- PrintEvent.cs
- DocumentReference.cs
- Base64Encoder.cs
- EntityDataSourceReferenceGroup.cs
- ArrayListCollectionBase.cs
- ValueConversionAttribute.cs
- SharedUtils.cs
- MenuEventArgs.cs
- TabControl.cs
- IdentityReference.cs
- DbException.cs
- EngineSiteSapi.cs
- PieceDirectory.cs
- DataKey.cs
- LicenseManager.cs
- InstalledVoice.cs
- FormViewUpdateEventArgs.cs
- CommandConverter.cs
- OracleParameter.cs
- DataGridViewCellCollection.cs
- Brushes.cs
- PagePropertiesChangingEventArgs.cs
- TypeExtensionConverter.cs
- DBNull.cs
- MachineSettingsSection.cs
- FloatUtil.cs
- ContainerParagraph.cs
- URLAttribute.cs
- PolicyLevel.cs
- DataProtectionSecurityStateEncoder.cs
- Utils.cs
- ObjectDataProvider.cs
- ChildrenQuery.cs
- DateTimeValueSerializerContext.cs
- XmlSchemaValidator.cs
- ActivityDesignerHelper.cs
- ItemsPresenter.cs
- UserUseLicenseDictionaryLoader.cs
- ModifierKeysConverter.cs
- ProgressBar.cs
- SettingsSavedEventArgs.cs
- OdbcConnectionOpen.cs
- LinqDataSourceValidationException.cs
- DataServiceRequestOfT.cs
- SqlDataSource.cs
- OAVariantLib.cs
- MsmqIntegrationChannelFactory.cs
- XsltSettings.cs
- HtmlWindow.cs
- ErrorEventArgs.cs
- HMACSHA512.cs
- InstanceLockLostException.cs
- XmlDataCollection.cs
- TimeZone.cs
- MonikerHelper.cs
- PixelFormatConverter.cs
- PolygonHotSpot.cs
- EntityClassGenerator.cs
- AnnouncementSendsAsyncResult.cs
- Point3DValueSerializer.cs
- Int32RectValueSerializer.cs
- AutomationAttributeInfo.cs
- DbTransaction.cs
- CodeDirectionExpression.cs
- RegexCaptureCollection.cs
- DebugTraceHelper.cs
- FigureHelper.cs
- PermissionSetEnumerator.cs
- EventHandlerList.cs
- ContainerTracking.cs
- SQLByteStorage.cs