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
- PropertyChangedEventManager.cs
- PageSetupDialog.cs
- CatalogZoneAutoFormat.cs
- PointLightBase.cs
- ExpressionBuilderCollection.cs
- PropertyIDSet.cs
- DetailsViewUpdatedEventArgs.cs
- AppDomainFactory.cs
- DeviceContext2.cs
- LayoutInformation.cs
- IIS7WorkerRequest.cs
- BitmapEffectGroup.cs
- PenContext.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Separator.cs
- EmptyReadOnlyDictionaryInternal.cs
- TextBox.cs
- XmlSchemaAny.cs
- CodeDirectionExpression.cs
- DesignerAutoFormat.cs
- BasicExpressionVisitor.cs
- DataGridViewRowsAddedEventArgs.cs
- PeerDefaultCustomResolverClient.cs
- ListMarkerLine.cs
- ACL.cs
- PlatformCulture.cs
- ConfigXmlWhitespace.cs
- DrawTreeNodeEventArgs.cs
- EntityType.cs
- MessageBox.cs
- DatasetMethodGenerator.cs
- IntegrationExceptionEventArgs.cs
- ConversionContext.cs
- TraceContextEventArgs.cs
- LinkTarget.cs
- DataSourceIDConverter.cs
- BitFlagsGenerator.cs
- DataGridTextBoxColumn.cs
- CollectionEditVerbManager.cs
- ZipIOExtraField.cs
- StylusPointProperty.cs
- HttpRuntimeSection.cs
- FreezableDefaultValueFactory.cs
- OrderPreservingMergeHelper.cs
- SortFieldComparer.cs
- RelationshipConstraintValidator.cs
- ResourceExpressionBuilder.cs
- ArrayMergeHelper.cs
- NullRuntimeConfig.cs
- Literal.cs
- XmlSchemaNotation.cs
- documentsequencetextpointer.cs
- Variant.cs
- DispatcherExceptionEventArgs.cs
- SmtpSection.cs
- EasingFunctionBase.cs
- SystemColors.cs
- SrgsRule.cs
- _Semaphore.cs
- MbpInfo.cs
- InternalResources.cs
- AnimationClock.cs
- Exceptions.cs
- ButtonColumn.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HwndSubclass.cs
- SiteIdentityPermission.cs
- PathFigure.cs
- MessageQueueAccessControlEntry.cs
- ClientConfigurationHost.cs
- HotSpot.cs
- BaseValidator.cs
- DispatcherHookEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- GridErrorDlg.cs
- SqlCaseSimplifier.cs
- CompositeClientFormatter.cs
- IdentityNotMappedException.cs
- PrintPreviewControl.cs
- Switch.cs
- GenerateHelper.cs
- TimeSpanOrInfiniteValidator.cs
- NamespaceCollection.cs
- NativeMethods.cs
- RegionData.cs
- HttpValueCollection.cs
- GridViewColumnHeader.cs
- DocumentOrderQuery.cs
- WindowsSysHeader.cs
- ServiceCredentials.cs
- BufferedReceiveElement.cs
- DataGridViewColumnEventArgs.cs
- RoleBoolean.cs
- ToolBarButtonDesigner.cs
- LinearKeyFrames.cs
- GiveFeedbackEvent.cs
- MemoryStream.cs
- LexicalChunk.cs
- CheckedListBox.cs
- XamlTemplateSerializer.cs