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
- SkewTransform.cs
- SqlConnectionStringBuilder.cs
- RolePrincipal.cs
- ProfilePropertySettings.cs
- RequestDescription.cs
- Parallel.cs
- DelegateHelpers.cs
- KeyPullup.cs
- CodeTypeParameter.cs
- IconConverter.cs
- OdbcHandle.cs
- NativeMethods.cs
- FieldNameLookup.cs
- OleDbRowUpdatedEvent.cs
- FileDialogCustomPlace.cs
- DecimalAnimation.cs
- TypeNameHelper.cs
- TypeElementCollection.cs
- PermissionRequestEvidence.cs
- TypeDescriptorContext.cs
- SplitterCancelEvent.cs
- Int32Converter.cs
- IdentityReference.cs
- SharedDp.cs
- SqlBinder.cs
- RuntimeConfigurationRecord.cs
- FunctionUpdateCommand.cs
- PeerCustomResolverElement.cs
- ColumnReorderedEventArgs.cs
- ExtensionCollection.cs
- ToolStripLabel.cs
- UInt32Converter.cs
- SendMailErrorEventArgs.cs
- LocalServiceSecuritySettings.cs
- HoistedLocals.cs
- ReliableRequestSessionChannel.cs
- WebZone.cs
- MarkupCompilePass2.cs
- CompareValidator.cs
- CoTaskMemHandle.cs
- EntityUtil.cs
- ConfigurationManagerInternal.cs
- WebPartPersonalization.cs
- PlatformNotSupportedException.cs
- XPathSelectionIterator.cs
- Formatter.cs
- XamlPoint3DCollectionSerializer.cs
- GeneratedContractType.cs
- HandlerFactoryCache.cs
- SourceChangedEventArgs.cs
- ComEventsSink.cs
- DurableEnlistmentState.cs
- RestClientProxyHandler.cs
- ping.cs
- CellParaClient.cs
- DBSqlParserColumnCollection.cs
- SmiMetaDataProperty.cs
- ToolStripItemRenderEventArgs.cs
- UrlUtility.cs
- AutomationAttributeInfo.cs
- DataGridViewRowsAddedEventArgs.cs
- TCEAdapterGenerator.cs
- EditBehavior.cs
- TypeConverterMarkupExtension.cs
- InputLanguage.cs
- HtmlMeta.cs
- EdmPropertyAttribute.cs
- SectionRecord.cs
- SoapObjectReader.cs
- StyleCollectionEditor.cs
- ColorContextHelper.cs
- ProfilePropertyMetadata.cs
- DataGridTablesFactory.cs
- Timeline.cs
- PopOutPanel.cs
- safex509handles.cs
- WebBaseEventKeyComparer.cs
- cryptoapiTransform.cs
- DriveNotFoundException.cs
- PkcsUtils.cs
- StrongNameMembershipCondition.cs
- CheckableControlBaseAdapter.cs
- ServiceModelInstallComponent.cs
- HeaderedContentControl.cs
- DetailsViewActionList.cs
- DocumentViewerBase.cs
- Hashtable.cs
- Odbc32.cs
- RawKeyboardInputReport.cs
- XmlReturnWriter.cs
- WindowsListViewSubItem.cs
- XmlNamespaceManager.cs
- List.cs
- ToggleButtonAutomationPeer.cs
- grammarelement.cs
- EncoderFallback.cs
- SQLGuid.cs
- DocumentNUp.cs
- BinaryFormatterSinks.cs
- RangeValueProviderWrapper.cs