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
- XpsInterleavingPolicy.cs
- BooleanKeyFrameCollection.cs
- PropertyChangedEventArgs.cs
- DataControlFieldHeaderCell.cs
- _DomainName.cs
- BCryptHashAlgorithm.cs
- DataObjectEventArgs.cs
- ColumnProvider.cs
- XmlAttribute.cs
- DBConnectionString.cs
- DataGridViewColumnTypePicker.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Effect.cs
- GeometryDrawing.cs
- PackWebRequest.cs
- ObjectStateFormatter.cs
- EventSinkHelperWriter.cs
- _BaseOverlappedAsyncResult.cs
- UnauthorizedAccessException.cs
- DocumentSchemaValidator.cs
- ValueUnavailableException.cs
- AliasedSlot.cs
- TypeElementCollection.cs
- SerializationUtility.cs
- ManifestResourceInfo.cs
- OracleConnectionString.cs
- LinkConverter.cs
- Double.cs
- Soap11ServerProtocol.cs
- OpCellTreeNode.cs
- ModelEditingScope.cs
- DataSourceDescriptorCollection.cs
- InkCanvasSelectionAdorner.cs
- RIPEMD160.cs
- ContractComponent.cs
- ResourceReader.cs
- PersistStreamTypeWrapper.cs
- PatternMatchRules.cs
- HitTestDrawingContextWalker.cs
- PasswordBoxAutomationPeer.cs
- SortDescriptionCollection.cs
- SoapTypeAttribute.cs
- ColumnCollection.cs
- EntityCommandCompilationException.cs
- BamlVersionHeader.cs
- PerspectiveCamera.cs
- ToolBarOverflowPanel.cs
- DbProviderFactory.cs
- AssemblyAttributes.cs
- ByteStreamMessageUtility.cs
- InternalSafeNativeMethods.cs
- SendingRequestEventArgs.cs
- LongAverageAggregationOperator.cs
- TextContainerChangeEventArgs.cs
- SrgsGrammarCompiler.cs
- BaseTemplateParser.cs
- ToolStripOverflowButton.cs
- PrintDialogException.cs
- XmlCustomFormatter.cs
- DataControlPagerLinkButton.cs
- QueryOptionExpression.cs
- InvokePatternIdentifiers.cs
- PersonalizationState.cs
- ProgressBarRenderer.cs
- PasswordBox.cs
- EntityDataSourceSelectedEventArgs.cs
- WCFBuildProvider.cs
- CharStorage.cs
- XmlHierarchyData.cs
- TaskDesigner.cs
- ICspAsymmetricAlgorithm.cs
- InvalidEnumArgumentException.cs
- EmptyQuery.cs
- UnsafeNativeMethodsPenimc.cs
- ApplicationHost.cs
- AppSecurityManager.cs
- ExpanderAutomationPeer.cs
- basenumberconverter.cs
- BitmapFrame.cs
- ActiveXSite.cs
- HttpListener.cs
- PermissionSet.cs
- ProxyWebPartConnectionCollection.cs
- SqlConnection.cs
- Fault.cs
- SAPICategories.cs
- ClientSettingsProvider.cs
- CommandSet.cs
- ZipIORawDataFileBlock.cs
- StringUtil.cs
- Misc.cs
- ConnectionStringsExpressionBuilder.cs
- RayMeshGeometry3DHitTestResult.cs
- WebChannelFactory.cs
- EntityDesignerUtils.cs
- ServicePointManager.cs
- ThreadExceptionDialog.cs
- DebugView.cs
- CharAnimationUsingKeyFrames.cs
- InstanceKeyCollisionException.cs