Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OracleDateTime.cs
- HybridDictionary.cs
- BypassElement.cs
- PackWebRequestFactory.cs
- Stackframe.cs
- CommandHelpers.cs
- OdbcParameter.cs
- ConnectionStringsExpressionBuilder.cs
- RowSpanVector.cs
- FusionWrap.cs
- NamedPipeChannelFactory.cs
- CollectionBase.cs
- UpdateRecord.cs
- ExceptionUtil.cs
- basemetadatamappingvisitor.cs
- MethodBuilderInstantiation.cs
- PropertyChangingEventArgs.cs
- StatusBarPanelClickEvent.cs
- ProgressBarAutomationPeer.cs
- __Error.cs
- HtmlTextArea.cs
- CopyOnWriteList.cs
- CodeSnippetExpression.cs
- KeyboardEventArgs.cs
- WeakReadOnlyCollection.cs
- ActionItem.cs
- Part.cs
- StoragePropertyMapping.cs
- AppSettingsReader.cs
- CompilerInfo.cs
- ReachFixedDocumentSerializerAsync.cs
- DataRelation.cs
- FlowDocumentScrollViewer.cs
- CallInfo.cs
- COM2FontConverter.cs
- IItemContainerGenerator.cs
- ToolStripPanelRenderEventArgs.cs
- LinqDataSourceUpdateEventArgs.cs
- CapabilitiesAssignment.cs
- ObjectReaderCompiler.cs
- RuleCache.cs
- SlipBehavior.cs
- XmlAnyElementAttribute.cs
- TypedElement.cs
- ZipIOExtraFieldElement.cs
- DataGridViewButtonColumn.cs
- WindowsSlider.cs
- WsdlBuildProvider.cs
- DataGridViewRowEventArgs.cs
- recordstatefactory.cs
- TypeDescriptionProviderAttribute.cs
- ReferenceService.cs
- DesignOnlyAttribute.cs
- RedistVersionInfo.cs
- SourceChangedEventArgs.cs
- IdSpace.cs
- ProgressBar.cs
- TextEditorCharacters.cs
- DiscreteKeyFrames.cs
- TextEmbeddedObject.cs
- KeyNotFoundException.cs
- DockProviderWrapper.cs
- XmlUtil.cs
- DefaultBinder.cs
- KernelTypeValidation.cs
- SafeSystemMetrics.cs
- NamedPipeChannelFactory.cs
- OdbcConnectionOpen.cs
- PointCollection.cs
- XmlReflectionMember.cs
- ResourceWriter.cs
- ResourceWriter.cs
- ObjectListComponentEditor.cs
- SynchronizedCollection.cs
- path.cs
- FixedTextBuilder.cs
- CodeCompileUnit.cs
- RegexCaptureCollection.cs
- X509LogoTypeExtension.cs
- ActiveXHost.cs
- AuthorizationPolicyTypeElementCollection.cs
- VisualStyleElement.cs
- BindableTemplateBuilder.cs
- UInt64Storage.cs
- RuleSettings.cs
- _KerberosClient.cs
- NamespaceList.cs
- ObsoleteAttribute.cs
- DelegatedStream.cs
- DateTimeOffset.cs
- SoapExtensionTypeElement.cs
- XmlWrappingWriter.cs
- odbcmetadatafactory.cs
- RtfNavigator.cs
- RemoteHelper.cs
- UIPropertyMetadata.cs
- TimeSpanMinutesConverter.cs
- QilFactory.cs
- CryptoConfig.cs
- Crc32Helper.cs