Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlWorkflowInstanceStoreLock.cs
- MenuBase.cs
- RealProxy.cs
- WorkflowApplication.cs
- ChildChangedEventArgs.cs
- CheckBox.cs
- ScalarOps.cs
- OleDbCommandBuilder.cs
- ObjectConverter.cs
- ExecutionContext.cs
- HttpRequestCacheValidator.cs
- NonDualMessageSecurityOverHttpElement.cs
- DbDataRecord.cs
- OdbcHandle.cs
- Privilege.cs
- Enum.cs
- SchemaImporterExtensionElementCollection.cs
- WebPartVerbsEventArgs.cs
- ReceiveParametersContent.cs
- TextTreeNode.cs
- Span.cs
- SqlReferenceCollection.cs
- RelOps.cs
- XPathNavigatorReader.cs
- OptimizedTemplateContent.cs
- CustomAttributeSerializer.cs
- XmlCustomFormatter.cs
- PrintPreviewDialog.cs
- XmlSiteMapProvider.cs
- ConstructorBuilder.cs
- AssemblySettingAttributes.cs
- XmlParser.cs
- ExtractedStateEntry.cs
- PropertyPathConverter.cs
- FlowLayoutPanel.cs
- HandleCollector.cs
- TargetConverter.cs
- BitArray.cs
- DrawingBrush.cs
- BitmapCodecInfoInternal.cs
- HttpCacheParams.cs
- SchemaCollectionCompiler.cs
- GridItem.cs
- DataGridAutoFormatDialog.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- TypographyProperties.cs
- OleDbParameter.cs
- AppendHelper.cs
- DynamicPropertyHolder.cs
- FlowDocumentReader.cs
- HttpRawResponse.cs
- WindowsGraphicsWrapper.cs
- ToolStripGrip.cs
- XmlILCommand.cs
- PublisherIdentityPermission.cs
- ApplicationTrust.cs
- GeneralTransform3DCollection.cs
- PageAsyncTaskManager.cs
- SingleAnimation.cs
- SerializationInfo.cs
- TemplateContentLoader.cs
- Constraint.cs
- FixedElement.cs
- RefreshEventArgs.cs
- ClipboardData.cs
- TypeResolvingOptions.cs
- NavigationFailedEventArgs.cs
- WindowsSspiNegotiation.cs
- DataServiceOperationContext.cs
- updatecommandorderer.cs
- SamlDelegatingWriter.cs
- PrintController.cs
- PassportAuthenticationEventArgs.cs
- XmlTextEncoder.cs
- MetadataWorkspace.cs
- ProcessStartInfo.cs
- BaseCodeDomTreeGenerator.cs
- TextEditorCharacters.cs
- DesignRelation.cs
- ObjectViewQueryResultData.cs
- FileInfo.cs
- BufferedGraphicsContext.cs
- CredentialCache.cs
- Identity.cs
- DesignerWidgets.cs
- EntitySqlException.cs
- WebPartZone.cs
- DataColumnMapping.cs
- WebPartDisplayModeEventArgs.cs
- FrameworkObject.cs
- ActivityScheduledRecord.cs
- UIInitializationException.cs
- ConsoleTraceListener.cs
- PartitionedStreamMerger.cs
- XmlSchemaSimpleContentExtension.cs
- ServiceInstallComponent.cs
- ComponentEditorForm.cs
- DoubleAnimationClockResource.cs
- PersonalizationEntry.cs
- PropertyConverter.cs