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
- WindowsAuthenticationModule.cs
- MatrixTransform3D.cs
- AccessKeyManager.cs
- CreateUserWizard.cs
- PropertyStore.cs
- TableColumn.cs
- BindingWorker.cs
- AuthorizationRuleCollection.cs
- WmlListAdapter.cs
- SmtpMail.cs
- JsonClassDataContract.cs
- PageSettings.cs
- WebEncodingValidator.cs
- LiteralControl.cs
- CompareInfo.cs
- VisualStyleInformation.cs
- CodeSubDirectory.cs
- ProcessModelInfo.cs
- BCryptHashAlgorithm.cs
- Timer.cs
- FlowDocumentScrollViewer.cs
- LambdaCompiler.Lambda.cs
- DataGridPreparingCellForEditEventArgs.cs
- GridToolTip.cs
- ContextMenu.cs
- RemoteHelper.cs
- IconConverter.cs
- RenderDataDrawingContext.cs
- XmlSchemaSimpleContentRestriction.cs
- WebPartHelpVerb.cs
- ChildrenQuery.cs
- InitializerFacet.cs
- SQLByteStorage.cs
- OleDbMetaDataFactory.cs
- RenderingEventArgs.cs
- SmtpCommands.cs
- ChannelManager.cs
- TypeBuilderInstantiation.cs
- ContractNamespaceAttribute.cs
- SocketElement.cs
- DataGridColumnHeader.cs
- ExpressionValueEditor.cs
- HtmlElement.cs
- TokenBasedSetEnumerator.cs
- Point.cs
- RuntimeHandles.cs
- EventRouteFactory.cs
- ExpandCollapseProviderWrapper.cs
- WpfPayload.cs
- _ShellExpression.cs
- MatrixTransform3D.cs
- PluralizationServiceUtil.cs
- ValidationHelper.cs
- Graphics.cs
- Collection.cs
- SchemaAttDef.cs
- WebHeaderCollection.cs
- TypeInfo.cs
- MailDefinitionBodyFileNameEditor.cs
- GlobalizationAssembly.cs
- XmlILConstructAnalyzer.cs
- VisualStyleInformation.cs
- DataGridTextBoxColumn.cs
- SharedConnectionInfo.cs
- ArraySortHelper.cs
- TimerElapsedEvenArgs.cs
- ValidatorCollection.cs
- DocumentGridPage.cs
- ViewStateModeByIdAttribute.cs
- Label.cs
- DataViewListener.cs
- ValueUnavailableException.cs
- TailCallAnalyzer.cs
- KeySpline.cs
- DesignerDataRelationship.cs
- DrawListViewItemEventArgs.cs
- ClonableStack.cs
- ComponentEditorPage.cs
- BlobPersonalizationState.cs
- SafeLocalMemHandle.cs
- MergablePropertyAttribute.cs
- RegularExpressionValidator.cs
- HttpContextServiceHost.cs
- LayeredChannelListener.cs
- UriWriter.cs
- ObjectNavigationPropertyMapping.cs
- RichTextBoxConstants.cs
- EmptyImpersonationContext.cs
- PointConverter.cs
- Light.cs
- ToolStripContentPanelDesigner.cs
- ConfigurationElement.cs
- TargetConverter.cs
- CheckBoxList.cs
- TextDocumentView.cs
- CfgSemanticTag.cs
- ElementHost.cs
- WebResourceUtil.cs
- ImpersonateTokenRef.cs
- AuthenticatingEventArgs.cs