Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Privilege.cs
- SortKey.cs
- TypeDescriptionProvider.cs
- BaseTemplateCodeDomTreeGenerator.cs
- InvokeSchedule.cs
- StoreItemCollection.cs
- OpenTypeLayout.cs
- ChineseLunisolarCalendar.cs
- HttpRuntime.cs
- AnimationClock.cs
- KoreanCalendar.cs
- SQLInt32.cs
- UnauthorizedAccessException.cs
- TextElementCollectionHelper.cs
- ByteAnimationBase.cs
- PrivilegedConfigurationManager.cs
- PaperSource.cs
- PerfService.cs
- WorkflowQueueInfo.cs
- wgx_sdk_version.cs
- DataObjectSettingDataEventArgs.cs
- DbConnectionClosed.cs
- EmptyReadOnlyDictionaryInternal.cs
- COAUTHIDENTITY.cs
- DBSchemaTable.cs
- WindowsPen.cs
- PropertyMapper.cs
- ImageMapEventArgs.cs
- WebDisplayNameAttribute.cs
- Stack.cs
- ExpressionBindingCollection.cs
- DataGridViewCellLinkedList.cs
- HttpModuleCollection.cs
- ContentType.cs
- PropertyFilterAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- MsmqIntegrationElement.cs
- QilSortKey.cs
- ExpressionBuilder.cs
- ResourceContainerWrapper.cs
- nulltextcontainer.cs
- PenLineJoinValidation.cs
- FontFamily.cs
- ThrowHelper.cs
- DivideByZeroException.cs
- ExpressionBinding.cs
- SecurityCriticalDataForSet.cs
- RemotingConfiguration.cs
- x509utils.cs
- XmlAttributeCollection.cs
- VariableValue.cs
- TitleStyle.cs
- Action.cs
- SpeakProgressEventArgs.cs
- _DynamicWinsockMethods.cs
- DesignerActionKeyboardBehavior.cs
- BulletedListEventArgs.cs
- NullableFloatMinMaxAggregationOperator.cs
- DragEventArgs.cs
- OleDbEnumerator.cs
- SQLGuid.cs
- XpsFixedDocumentReaderWriter.cs
- SecurityContext.cs
- MergablePropertyAttribute.cs
- XmlTextReaderImpl.cs
- RegexInterpreter.cs
- Selection.cs
- TreeViewEvent.cs
- HtmlInputHidden.cs
- SafeUserTokenHandle.cs
- ExtendedPropertyDescriptor.cs
- SqlConnectionFactory.cs
- InheritanceContextHelper.cs
- PropertyChangedEventArgs.cs
- SourceChangedEventArgs.cs
- RouteItem.cs
- SqlErrorCollection.cs
- GuidelineSet.cs
- NetworkInformationPermission.cs
- EdmEntityTypeAttribute.cs
- SerializationException.cs
- HashCodeCombiner.cs
- WindowsGraphics.cs
- ListDictionary.cs
- ColumnMapCopier.cs
- AutoGeneratedFieldProperties.cs
- GlyphElement.cs
- TargetException.cs
- DrawingBrush.cs
- NullExtension.cs
- XpsDocumentEvent.cs
- Stackframe.cs
- TrustSection.cs
- BooleanKeyFrameCollection.cs
- SoapFault.cs
- UpdateCompiler.cs
- ServiceProviders.cs
- ParenthesizePropertyNameAttribute.cs
- ErrorWrapper.cs
- FtpWebRequest.cs