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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeneralTransform3DCollection.cs
- TraceHwndHost.cs
- ArgumentNullException.cs
- NotifyInputEventArgs.cs
- DoubleCollectionValueSerializer.cs
- SQLStringStorage.cs
- DependencySource.cs
- OracleSqlParser.cs
- SchemaConstraints.cs
- XPathNodeIterator.cs
- ConnectorSelectionGlyph.cs
- ModifierKeysValueSerializer.cs
- ManageRequest.cs
- CompiledQuery.cs
- NativeWrapper.cs
- CachingParameterInspector.cs
- PartBasedPackageProperties.cs
- DefaultAuthorizationContext.cs
- XmlBinaryReader.cs
- OleDbPropertySetGuid.cs
- ContentControl.cs
- TemplatedMailWebEventProvider.cs
- QueryStringParameter.cs
- AccessorTable.cs
- SchemaEntity.cs
- XmlAttributeOverrides.cs
- CuspData.cs
- UserControlCodeDomTreeGenerator.cs
- IItemContainerGenerator.cs
- WsrmFault.cs
- PassportAuthentication.cs
- SafeFindHandle.cs
- InstancePersistenceContext.cs
- BypassElement.cs
- IApplicationTrustManager.cs
- WindowsTitleBar.cs
- PersianCalendar.cs
- ModelPropertyImpl.cs
- EnvironmentPermission.cs
- OracleConnection.cs
- StyleXamlTreeBuilder.cs
- Panel.cs
- figurelength.cs
- InputElement.cs
- SubclassTypeValidator.cs
- DebugController.cs
- InitializingNewItemEventArgs.cs
- SourceFilter.cs
- SqlException.cs
- StatusBarPanelClickEvent.cs
- GregorianCalendarHelper.cs
- WebPartMovingEventArgs.cs
- Material.cs
- _IPv4Address.cs
- KeyProperty.cs
- MediaElementAutomationPeer.cs
- SafePipeHandle.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ResizeGrip.cs
- SecurityTokenSerializer.cs
- StoreItemCollection.Loader.cs
- TextFormatterHost.cs
- TypeUnloadedException.cs
- ApplicationManager.cs
- XmlSchemaSubstitutionGroup.cs
- BitmapSource.cs
- TemplateLookupAction.cs
- ContentDisposition.cs
- HtmlLink.cs
- WriteTimeStream.cs
- MonitoringDescriptionAttribute.cs
- ColumnWidthChangingEvent.cs
- DSASignatureFormatter.cs
- RouteTable.cs
- cookiecollection.cs
- EventWaitHandleSecurity.cs
- Action.cs
- XXXOnTypeBuilderInstantiation.cs
- HideDisabledControlAdapter.cs
- PartitionedStream.cs
- ImageAttributes.cs
- DrawTreeNodeEventArgs.cs
- InputMethodStateTypeInfo.cs
- SmtpNtlmAuthenticationModule.cs
- SrgsDocument.cs
- InitializationEventAttribute.cs
- ViewgenGatekeeper.cs
- ColumnProvider.cs
- ReadWriteControlDesigner.cs
- ScriptServiceAttribute.cs
- Light.cs
- ListMarkerSourceInfo.cs
- Workspace.cs
- DispatchOperation.cs
- DurableOperationContext.cs
- Encoder.cs
- Camera.cs
- HttpModuleCollection.cs
- MemberProjectionIndex.cs
- Bind.cs