Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ControllableStoryboardAction.cs
- StrongNameHelpers.cs
- ParameterElementCollection.cs
- DriveNotFoundException.cs
- HttpHandlerAction.cs
- XmlProcessingInstruction.cs
- PeerName.cs
- AnimationException.cs
- UIElementHelper.cs
- WebRequestModuleElement.cs
- TdsEnums.cs
- RMEnrollmentPage1.cs
- CorrelationInitializer.cs
- LassoSelectionBehavior.cs
- HttpClientCertificate.cs
- CustomAttributeBuilder.cs
- EventLogPermission.cs
- SuppressMergeCheckAttribute.cs
- PagerSettings.cs
- ContentValidator.cs
- StringReader.cs
- Compilation.cs
- DataGridViewButtonCell.cs
- StructuredProperty.cs
- GcHandle.cs
- SamlAttributeStatement.cs
- Geometry3D.cs
- StringResourceManager.cs
- EdmProviderManifest.cs
- HealthMonitoringSectionHelper.cs
- BindingCollection.cs
- NativeMethods.cs
- WebUtil.cs
- MultilineStringConverter.cs
- Size3DValueSerializer.cs
- DatePicker.cs
- ContentFileHelper.cs
- TraceHandlerErrorFormatter.cs
- Drawing.cs
- HelpEvent.cs
- MailSettingsSection.cs
- XmlSchemaSimpleContentRestriction.cs
- SignatureSummaryDialog.cs
- SqlBulkCopyColumnMappingCollection.cs
- GPStream.cs
- TreeNodeMouseHoverEvent.cs
- GeometryGroup.cs
- ConstrainedGroup.cs
- KnownBoxes.cs
- embossbitmapeffect.cs
- ProtocolProfile.cs
- BinaryParser.cs
- ProfileService.cs
- PropertyEmitterBase.cs
- HasActivatableWorkflowEvent.cs
- Baml2006ReaderFrame.cs
- Vector3dCollection.cs
- EventMemberCodeDomSerializer.cs
- unitconverter.cs
- TransformCryptoHandle.cs
- SmiRecordBuffer.cs
- ToolStripRendererSwitcher.cs
- Renderer.cs
- mansign.cs
- ObjectListTitleAttribute.cs
- ZoneLinkButton.cs
- AppDomainProtocolHandler.cs
- BitHelper.cs
- AsyncOperationManager.cs
- XmlToDatasetMap.cs
- DBSchemaTable.cs
- XmlSchemaSimpleTypeList.cs
- IncrementalReadDecoders.cs
- ZoneIdentityPermission.cs
- WmpBitmapDecoder.cs
- Attributes.cs
- DirectoryRedirect.cs
- WebPartConnectionsConfigureVerb.cs
- AutomationAttributeInfo.cs
- SqlDataSourceStatusEventArgs.cs
- Membership.cs
- TagNameToTypeMapper.cs
- WebContext.cs
- XsdCachingReader.cs
- XmlSerializationGeneratedCode.cs
- ToolBarDesigner.cs
- XslTransform.cs
- WebScriptMetadataInstanceContextProvider.cs
- InternalControlCollection.cs
- TextDecoration.cs
- UntrustedRecipientException.cs
- HasCopySemanticsAttribute.cs
- FileLevelControlBuilderAttribute.cs
- AutomationTextAttribute.cs
- TreeChangeInfo.cs
- ByteRangeDownloader.cs
- SID.cs
- CFStream.cs
- ValueTypeFixupInfo.cs
- shaperfactory.cs