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
- ScaleTransform.cs
- ThreadTrace.cs
- GlyphCache.cs
- SQLDouble.cs
- CheckBox.cs
- ScrollData.cs
- DropShadowBitmapEffect.cs
- ProfileService.cs
- SimpleLine.cs
- LoginView.cs
- TableRowGroup.cs
- AutomationEvent.cs
- HideDisabledControlAdapter.cs
- MetadataArtifactLoaderResource.cs
- CommonProperties.cs
- templategroup.cs
- XmlConvert.cs
- TrustLevelCollection.cs
- ListBase.cs
- Expression.DebuggerProxy.cs
- DataGridViewRowsAddedEventArgs.cs
- UserInitiatedNavigationPermission.cs
- FormsAuthenticationCredentials.cs
- ServiceDesigner.cs
- TrustManagerPromptUI.cs
- ProfileParameter.cs
- PerspectiveCamera.cs
- HttpBrowserCapabilitiesBase.cs
- SQLRoleProvider.cs
- WebPartAuthorizationEventArgs.cs
- MailWebEventProvider.cs
- DelegatedStream.cs
- OperandQuery.cs
- PersonalizationDictionary.cs
- XMLUtil.cs
- CompilerLocalReference.cs
- ApplicationSettingsBase.cs
- FigureParaClient.cs
- XamlSerializationHelper.cs
- SecurityCriticalDataForSet.cs
- HttpRuntime.cs
- FixUpCollection.cs
- IUnknownConstantAttribute.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- HttpWebRequest.cs
- InfoCardTraceRecord.cs
- SqlCommand.cs
- RectangleF.cs
- Win32NamedPipes.cs
- ControlPropertyNameConverter.cs
- Viewport3DVisual.cs
- NativeMethods.cs
- FocusChangedEventArgs.cs
- ServiceConfigurationTraceRecord.cs
- RootBrowserWindow.cs
- DataControlImageButton.cs
- ToolboxControl.cs
- Command.cs
- PngBitmapEncoder.cs
- EntityTypeEmitter.cs
- TagPrefixAttribute.cs
- HashAlgorithm.cs
- XmlLanguage.cs
- ToggleButtonAutomationPeer.cs
- SafePEFileHandle.cs
- GPPOINTF.cs
- SharedDp.cs
- BamlReader.cs
- ActivationServices.cs
- Range.cs
- ProfileSettings.cs
- VisualBasicSettingsHandler.cs
- FormViewDeleteEventArgs.cs
- HttpPostLocalhostServerProtocol.cs
- GacUtil.cs
- RangeValuePattern.cs
- EdmComplexPropertyAttribute.cs
- BamlTreeUpdater.cs
- LocalizableAttribute.cs
- DateRangeEvent.cs
- PolyLineSegmentFigureLogic.cs
- DesignerRegionCollection.cs
- StreamInfo.cs
- ArglessEventHandlerProxy.cs
- JoinGraph.cs
- NullReferenceException.cs
- CodeParameterDeclarationExpressionCollection.cs
- invalidudtexception.cs
- ScriptReferenceEventArgs.cs
- AmbientValueAttribute.cs
- ToolStripControlHost.cs
- WebPartAuthorizationEventArgs.cs
- HttpModulesSection.cs
- BamlRecordHelper.cs
- securitycriticaldata.cs
- FormCollection.cs
- altserialization.cs
- ContractMethodParameterInfo.cs
- TrackingSection.cs
- DataGridViewUtilities.cs