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
- AnnotationResourceChangedEventArgs.cs
- WindowsRichEditRange.cs
- HeaderUtility.cs
- RouteData.cs
- PageStatePersister.cs
- FloaterBaseParaClient.cs
- SQLByteStorage.cs
- BasicExpressionVisitor.cs
- GraphicsPath.cs
- MetroSerializationManager.cs
- SystemWebExtensionsSectionGroup.cs
- DataSet.cs
- Sequence.cs
- StorageAssociationSetMapping.cs
- SchemaNamespaceManager.cs
- KeyPressEvent.cs
- _HelperAsyncResults.cs
- Symbol.cs
- PointConverter.cs
- NonClientArea.cs
- MobileControlsSectionHelper.cs
- WebServiceHost.cs
- NamespaceEmitter.cs
- PointLight.cs
- CompilationRelaxations.cs
- ResXDataNode.cs
- PointF.cs
- DBCommand.cs
- MouseWheelEventArgs.cs
- SystemNetHelpers.cs
- IntSecurity.cs
- ConfigurationSettings.cs
- GrammarBuilderPhrase.cs
- DBCommand.cs
- ZipIOBlockManager.cs
- NavigationPropertySingletonExpression.cs
- HttpFileCollectionBase.cs
- Registry.cs
- TypeReference.cs
- LinqDataSourceSelectEventArgs.cs
- ProfessionalColorTable.cs
- CalendarAutomationPeer.cs
- WebPartEditorCancelVerb.cs
- CollectionContainer.cs
- TextEffectCollection.cs
- ParallelTimeline.cs
- TryCatch.cs
- RelationshipEnd.cs
- BulletChrome.cs
- BrowserCapabilitiesCodeGenerator.cs
- __Error.cs
- ScriptControlManager.cs
- DataMemberListEditor.cs
- ScriptModule.cs
- MimeAnyImporter.cs
- ModifierKeysConverter.cs
- CheckBox.cs
- IPAddressCollection.cs
- TextEndOfSegment.cs
- SizeAnimationBase.cs
- FusionWrap.cs
- Main.cs
- BufferModesCollection.cs
- AmbientProperties.cs
- GlobalItem.cs
- MatrixTransform3D.cs
- IIS7UserPrincipal.cs
- InputLangChangeEvent.cs
- SqlCacheDependencyDatabaseCollection.cs
- ServiceModelInstallComponent.cs
- Rectangle.cs
- ConnectionPointCookie.cs
- DirectoryRedirect.cs
- TextContainerChangedEventArgs.cs
- TreeNodeConverter.cs
- HttpProfileBase.cs
- OperationParameterInfoCollection.cs
- DBParameter.cs
- SqlDataSource.cs
- System.Data_BID.cs
- BasicKeyConstraint.cs
- BulletedList.cs
- MessageSecurityOverMsmq.cs
- Argument.cs
- EventLogReader.cs
- FixedPageProcessor.cs
- WindowsSpinner.cs
- DataGridViewCellFormattingEventArgs.cs
- Timer.cs
- ProtocolElementCollection.cs
- HostVisual.cs
- SpecularMaterial.cs
- StylusPointPropertyUnit.cs
- WebPartEventArgs.cs
- ParenExpr.cs
- PermissionRequestEvidence.cs
- TypeResolver.cs
- AbandonedMutexException.cs
- AnonymousIdentificationModule.cs
- Privilege.cs