Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Permissions / RightsManagementPermission.cs / 1305600 / 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class RightsManagementPermission : InternalParameterlessPermissionBase { public RightsManagementPermission() : this(PermissionState.Unrestricted) { } public RightsManagementPermission(PermissionState state): base(state) { } 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class RightsManagementPermission : InternalParameterlessPermissionBase { public RightsManagementPermission() : this(PermissionState.Unrestricted) { } public RightsManagementPermission(PermissionState state): base(state) { } 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
- ContentControl.cs
- DataPagerFieldCollection.cs
- Deserializer.cs
- TreeNodeBindingDepthConverter.cs
- TextServicesManager.cs
- cookiecollection.cs
- GlyphCache.cs
- HttpRawResponse.cs
- HostingEnvironmentSection.cs
- SingleConverter.cs
- SessionParameter.cs
- SqlDataRecord.cs
- WebServiceEnumData.cs
- _ShellExpression.cs
- ObjectCache.cs
- DataBindingHandlerAttribute.cs
- DesignerSerializationManager.cs
- GenericEnumConverter.cs
- WindowsRegion.cs
- CodeChecksumPragma.cs
- SelectionItemProviderWrapper.cs
- ParagraphResult.cs
- _NetworkingPerfCounters.cs
- UInt32.cs
- FontNameEditor.cs
- GeometryValueSerializer.cs
- MembershipUser.cs
- DataListItem.cs
- SendSecurityHeader.cs
- tabpagecollectioneditor.cs
- AccessControlList.cs
- InternalsVisibleToAttribute.cs
- PersonalizationDictionary.cs
- GroupLabel.cs
- DesignerHost.cs
- login.cs
- COAUTHINFO.cs
- IntSecurity.cs
- SecurityRuntime.cs
- UnsafeNativeMethods.cs
- OracleBFile.cs
- ImageClickEventArgs.cs
- HeaderCollection.cs
- TreeNodeMouseHoverEvent.cs
- ContextBase.cs
- CharKeyFrameCollection.cs
- StatusBar.cs
- controlskin.cs
- mongolianshape.cs
- ComponentChangingEvent.cs
- NativeMethods.cs
- Preprocessor.cs
- RectangleGeometry.cs
- EmptyCollection.cs
- RoleServiceManager.cs
- Schema.cs
- SecurityContextCookieSerializer.cs
- SerializationException.cs
- TableDetailsRow.cs
- UriWriter.cs
- ManagementEventWatcher.cs
- CanonicalFormWriter.cs
- Activity.cs
- StylusPoint.cs
- PerformanceCountersElement.cs
- NotificationContext.cs
- Merger.cs
- CustomErrorCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- ItemCheckEvent.cs
- UpdatePanelControlTrigger.cs
- SqlConnectionString.cs
- NetPipeSection.cs
- SevenBitStream.cs
- _OverlappedAsyncResult.cs
- CollectionContainer.cs
- SplayTreeNode.cs
- PKCS1MaskGenerationMethod.cs
- SqlBulkCopyColumnMappingCollection.cs
- FontCollection.cs
- PreservationFileWriter.cs
- WindowsRichEditRange.cs
- ContainerUtilities.cs
- LambdaCompiler.Binary.cs
- StrongNameUtility.cs
- Scripts.cs
- ToolStripSplitButton.cs
- RepeaterCommandEventArgs.cs
- ColorPalette.cs
- ViewCellSlot.cs
- EventLogPermissionEntry.cs
- SqlRowUpdatedEvent.cs
- GridItem.cs
- Main.cs
- RequestBringIntoViewEventArgs.cs
- SoundPlayerAction.cs
- ListenerSessionConnection.cs
- SafeLibraryHandle.cs
- DLinqDataModelProvider.cs
- View.cs