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
- DataServiceContext.cs
- WorkItem.cs
- ClientBuildManagerCallback.cs
- DesignerVerbCollection.cs
- ReachUIElementCollectionSerializerAsync.cs
- AttributeData.cs
- BaseServiceProvider.cs
- ApplicationHost.cs
- SecUtil.cs
- _HeaderInfo.cs
- TextRunTypographyProperties.cs
- LoginUtil.cs
- PersonalizablePropertyEntry.cs
- LabelLiteral.cs
- COSERVERINFO.cs
- WindowClosedEventArgs.cs
- Renderer.cs
- BrowserCapabilitiesFactory35.cs
- WindowsContainer.cs
- InputScopeConverter.cs
- WindowAutomationPeer.cs
- MatchSingleFxEngineOpcode.cs
- OrderedDictionaryStateHelper.cs
- CompensatableSequenceActivity.cs
- BindingList.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- RepeaterItem.cs
- AdornerLayer.cs
- fixedPageContentExtractor.cs
- RouteItem.cs
- KeyFrames.cs
- AddInStore.cs
- ITreeGenerator.cs
- HyperLink.cs
- XmlDataSourceView.cs
- SQLByteStorage.cs
- ConfigurationManager.cs
- RuleProcessor.cs
- SafeSecurityHelper.cs
- DetailsViewDeletedEventArgs.cs
- PropertyGeneratedEventArgs.cs
- ArithmeticException.cs
- DataServiceBehavior.cs
- dtdvalidator.cs
- RuleInfoComparer.cs
- TdsParserSessionPool.cs
- ReflectionTypeLoadException.cs
- DesignSurfaceServiceContainer.cs
- DataObject.cs
- WebPageTraceListener.cs
- SymbolMethod.cs
- HtmlInputImage.cs
- HttpCacheParams.cs
- TimelineCollection.cs
- NotifyCollectionChangedEventArgs.cs
- MULTI_QI.cs
- UIAgentMonitorHandle.cs
- WindowsSysHeader.cs
- Helpers.cs
- RSAOAEPKeyExchangeFormatter.cs
- HttpCookie.cs
- StringUtil.cs
- InlinedAggregationOperator.cs
- MDIWindowDialog.cs
- XmlDataImplementation.cs
- AlternateViewCollection.cs
- FtpWebRequest.cs
- DefaultAuthorizationContext.cs
- TransformerTypeCollection.cs
- WrappingXamlSchemaContext.cs
- HandleCollector.cs
- SharedConnectionListener.cs
- LinqDataSourceHelper.cs
- PermissionSetEnumerator.cs
- ListContractAdapter.cs
- HelpInfo.cs
- ChildDocumentBlock.cs
- StringFormat.cs
- DataFieldConverter.cs
- SelectedGridItemChangedEvent.cs
- ConfigurationPermission.cs
- ToolBar.cs
- MouseEvent.cs
- Splitter.cs
- IisTraceListener.cs
- Assembly.cs
- SimpleType.cs
- SchemaImporterExtensionsSection.cs
- BevelBitmapEffect.cs
- XmlILAnnotation.cs
- RegionData.cs
- altserialization.cs
- InfocardExtendedInformationEntry.cs
- ChtmlImageAdapter.cs
- ScrollBarRenderer.cs
- SmtpNetworkElement.cs
- FileDialog.cs
- SoapMessage.cs
- CodeAccessSecurityEngine.cs
- RefreshPropertiesAttribute.cs