Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- WeakReferenceList.cs
- StylusPoint.cs
- SQLBytes.cs
- QueryContinueDragEvent.cs
- transactioncontext.cs
- DataRowComparer.cs
- MemoryPressure.cs
- ImageIndexConverter.cs
- ReflectionUtil.cs
- LabelLiteral.cs
- WorkItem.cs
- Int32Collection.cs
- Vector.cs
- ListViewUpdateEventArgs.cs
- ImageSource.cs
- CheckableControlBaseAdapter.cs
- BindingWorker.cs
- ResourceDictionary.cs
- StateMachineExecutionState.cs
- DBConnectionString.cs
- HtmlElementCollection.cs
- Main.cs
- ListDictionary.cs
- SortQuery.cs
- MachineKeySection.cs
- InternalBufferOverflowException.cs
- WebPartsPersonalization.cs
- WindowExtensionMethods.cs
- Drawing.cs
- Util.cs
- odbcmetadatacollectionnames.cs
- PenContexts.cs
- KnownBoxes.cs
- Point3DAnimation.cs
- HMACMD5.cs
- ResourceWriter.cs
- Rotation3D.cs
- BindingNavigator.cs
- PageBreakRecord.cs
- ProfileService.cs
- DataFieldCollectionEditor.cs
- ResXBuildProvider.cs
- HTMLTextWriter.cs
- XsltException.cs
- ImageButton.cs
- MinMaxParagraphWidth.cs
- QueuePropertyVariants.cs
- DataBoundControl.cs
- CalendarDay.cs
- ModuleConfigurationInfo.cs
- ObjectHandle.cs
- Transform3D.cs
- Merger.cs
- CfgRule.cs
- DocumentsTrace.cs
- FontStyleConverter.cs
- PathGradientBrush.cs
- TreeViewCancelEvent.cs
- ConfigsHelper.cs
- ValidationPropertyAttribute.cs
- ViewStateModeByIdAttribute.cs
- ContextMenu.cs
- ProxyGenerator.cs
- RecipientIdentity.cs
- WrappingXamlSchemaContext.cs
- LoginCancelEventArgs.cs
- ClassicBorderDecorator.cs
- Dictionary.cs
- OdbcParameter.cs
- Journaling.cs
- LocationSectionRecord.cs
- SolidBrush.cs
- HttpHandler.cs
- BuiltInExpr.cs
- Clipboard.cs
- ExtensionQuery.cs
- Events.cs
- AggregationMinMaxHelpers.cs
- EventDescriptorCollection.cs
- SqlCacheDependencyDatabase.cs
- RegexCaptureCollection.cs
- ThicknessAnimation.cs
- WindowsMenu.cs
- WebConfigurationHost.cs
- ExpiredSecurityTokenException.cs
- SamlAttribute.cs
- WebServiceData.cs
- TextMetrics.cs
- ActivityExecutorDelegateInfo.cs
- ConfigXmlCDataSection.cs
- UriSectionData.cs
- AuthenticationConfig.cs
- DesignerTextWriter.cs
- SequenceDesigner.cs
- InternalCache.cs
- PointAnimationUsingPath.cs
- SecurityKeyUsage.cs
- PageThemeCodeDomTreeGenerator.cs
- Switch.cs
- Wildcard.cs