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
- ActivityDesigner.cs
- CompositeActivityTypeDescriptor.cs
- MenuItemStyle.cs
- ShapingWorkspace.cs
- SemanticTag.cs
- EntityUtil.cs
- DataSourceConverter.cs
- JavaScriptObjectDeserializer.cs
- FocusChangedEventArgs.cs
- CodeExpressionStatement.cs
- DataServiceRequestException.cs
- LinearKeyFrames.cs
- AttributedMetaModel.cs
- LineUtil.cs
- ObjectQuery_EntitySqlExtensions.cs
- XmlLanguage.cs
- ImageBrush.cs
- SQLInt16.cs
- RoutedCommand.cs
- TextFormatter.cs
- AutomationIdentifier.cs
- KoreanLunisolarCalendar.cs
- PropertyValueUIItem.cs
- SystemThemeKey.cs
- Duration.cs
- PropertyMap.cs
- DataServiceQuery.cs
- ButtonBaseAdapter.cs
- MessageSecurityException.cs
- SequentialUshortCollection.cs
- DateTimeUtil.cs
- TextShapeableCharacters.cs
- TransactionValidationBehavior.cs
- RenderingEventArgs.cs
- MdImport.cs
- TableCell.cs
- __ComObject.cs
- ReachObjectContext.cs
- DataView.cs
- Collection.cs
- BinaryParser.cs
- DbXmlEnabledProviderManifest.cs
- ListControlConvertEventArgs.cs
- ValidationPropertyAttribute.cs
- PermissionRequestEvidence.cs
- ServiceModelPerformanceCounters.cs
- CompiledIdentityConstraint.cs
- Freezable.cs
- Attributes.cs
- IQueryable.cs
- RowSpanVector.cs
- EntityContainerAssociationSetEnd.cs
- PagedDataSource.cs
- CollectionsUtil.cs
- ClientTarget.cs
- ItemContainerGenerator.cs
- ExponentialEase.cs
- DetailsViewPageEventArgs.cs
- HttpGetServerProtocol.cs
- SecureStringHasher.cs
- Transform.cs
- PerformanceCounterPermissionEntry.cs
- GradientStop.cs
- UpdateExpressionVisitor.cs
- Operand.cs
- ImageCreator.cs
- TextServicesManager.cs
- Interlocked.cs
- CreateUserWizardAutoFormat.cs
- JsonXmlDataContract.cs
- SmiMetaData.cs
- EventSetter.cs
- ImageConverter.cs
- BindingNavigator.cs
- shaperfactory.cs
- SystemNetHelpers.cs
- NegotiateStream.cs
- WebEventCodes.cs
- PathStreamGeometryContext.cs
- CapabilitiesRule.cs
- SqlComparer.cs
- ManifestResourceInfo.cs
- Model3DGroup.cs
- Thread.cs
- RootNamespaceAttribute.cs
- EditorPart.cs
- TextModifierScope.cs
- PropertyTabAttribute.cs
- HotCommands.cs
- ConfigurationManagerInternal.cs
- HwndHostAutomationPeer.cs
- SystemException.cs
- wgx_sdk_version.cs
- PerfCounterSection.cs
- SqlConnectionPoolProviderInfo.cs
- XmlSerializerAssemblyAttribute.cs
- compensatingcollection.cs
- WebResourceUtil.cs
- XmlSchemaProviderAttribute.cs
- Nodes.cs