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
- FixedSOMFixedBlock.cs
- CodeDirectoryCompiler.cs
- ObjectManager.cs
- SqlRowUpdatingEvent.cs
- MembershipUser.cs
- IIS7ConfigurationLoader.cs
- DateTimeValueSerializer.cs
- PerformanceCounterScope.cs
- XsdCachingReader.cs
- RuntimeIdentifierPropertyAttribute.cs
- Brush.cs
- TextTreeDeleteContentUndoUnit.cs
- WindowsComboBox.cs
- NCryptNative.cs
- InfoCardAsymmetricCrypto.cs
- EventLogPermissionEntryCollection.cs
- MenuRendererClassic.cs
- NullableLongSumAggregationOperator.cs
- WebServiceClientProxyGenerator.cs
- CompilerResults.cs
- MarkupCompiler.cs
- _OSSOCK.cs
- CodeTypeMemberCollection.cs
- ToolStripOverflowButton.cs
- SAPIEngineTypes.cs
- AncillaryOps.cs
- EnumCodeDomSerializer.cs
- _AuthenticationState.cs
- CalloutQueueItem.cs
- WebPartTransformer.cs
- OleDbDataReader.cs
- ThreadSafeList.cs
- LassoHelper.cs
- ServiceModelReg.cs
- EntityWrapperFactory.cs
- FlowSwitchLink.cs
- ObjectHelper.cs
- ISCIIEncoding.cs
- SmiMetaDataProperty.cs
- RegexGroupCollection.cs
- Semaphore.cs
- LambdaCompiler.Logical.cs
- IISMapPath.cs
- Viewport2DVisual3D.cs
- UpdatePanel.cs
- AxHost.cs
- WebHttpEndpointElement.cs
- ItemsControlAutomationPeer.cs
- ImageBrush.cs
- IMembershipProvider.cs
- AnnotationHelper.cs
- ValidationPropertyAttribute.cs
- IOException.cs
- CacheDependency.cs
- PowerModeChangedEventArgs.cs
- CultureTableRecord.cs
- XpsS0ValidatingLoader.cs
- FastEncoderWindow.cs
- NameValuePair.cs
- SymLanguageVendor.cs
- CodeSnippetTypeMember.cs
- ButtonAutomationPeer.cs
- RuntimeResourceSet.cs
- DateTimeOffset.cs
- GregorianCalendarHelper.cs
- TextEditorTables.cs
- Range.cs
- Substitution.cs
- COAUTHINFO.cs
- StatusCommandUI.cs
- PasswordRecoveryDesigner.cs
- WindowsStatic.cs
- CornerRadius.cs
- XamlBrushSerializer.cs
- TemplatePagerField.cs
- OdbcParameter.cs
- CodeGenerator.cs
- TextChangedEventArgs.cs
- HttpHandlerAction.cs
- PartialList.cs
- SplineKeyFrames.cs
- NativeMethods.cs
- DataSourceHelper.cs
- XmlUTF8TextWriter.cs
- ScriptingProfileServiceSection.cs
- PathFigureCollection.cs
- WindowsAuthenticationModule.cs
- ItemList.cs
- FilterableAttribute.cs
- ImageBrush.cs
- PhoneCall.cs
- FreezableDefaultValueFactory.cs
- ClientTargetCollection.cs
- ConnectionInterfaceCollection.cs
- ProxyWebPartManager.cs
- MarshalByRefObject.cs
- EntityDataSourceSelectingEventArgs.cs
- basevalidator.cs
- IPPacketInformation.cs
- AsyncCompletedEventArgs.cs