Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeIterator.cs
- InputLanguageProfileNotifySink.cs
- TemplateField.cs
- CompilationRelaxations.cs
- AnnotationDocumentPaginator.cs
- RIPEMD160Managed.cs
- TransferRequestHandler.cs
- CodeTypeParameter.cs
- XmlNavigatorFilter.cs
- RoleService.cs
- SolidBrush.cs
- GenericsInstances.cs
- OleDbDataAdapter.cs
- XmlExtensionFunction.cs
- EntityDataSourceContextDisposingEventArgs.cs
- Point4DConverter.cs
- ScriptResourceHandler.cs
- DispatchChannelSink.cs
- DataSourceCache.cs
- DBPropSet.cs
- BitStack.cs
- PkcsUtils.cs
- IISUnsafeMethods.cs
- WorkflowTransactionService.cs
- ColumnCollection.cs
- storepermissionattribute.cs
- ComponentConverter.cs
- AsnEncodedData.cs
- SpotLight.cs
- SQLDateTimeStorage.cs
- ControlHelper.cs
- CheckBoxPopupAdapter.cs
- DetailsViewModeEventArgs.cs
- SizeConverter.cs
- HtmlLink.cs
- WebHeaderCollection.cs
- PropertyAccessVisitor.cs
- UiaCoreApi.cs
- NamedElement.cs
- GlobalDataBindingHandler.cs
- SourceElementsCollection.cs
- Funcletizer.cs
- PtsCache.cs
- ImageSourceValueSerializer.cs
- ClientFormsAuthenticationMembershipProvider.cs
- StreamGeometryContext.cs
- AdornerLayer.cs
- RegisteredArrayDeclaration.cs
- ServicePointManager.cs
- DesignBindingPicker.cs
- SplineKeyFrames.cs
- KeyboardDevice.cs
- VersionedStreamOwner.cs
- WebServiceParameterData.cs
- UInt64.cs
- CompositeScriptReference.cs
- WebPageTraceListener.cs
- FilterQueryOptionExpression.cs
- XmlCharCheckingWriter.cs
- PropertyItem.cs
- UrlMappingCollection.cs
- DebugTrace.cs
- HttpRequestCacheValidator.cs
- XmlSchemaException.cs
- UnsafeNativeMethods.cs
- StylusEventArgs.cs
- RtfControlWordInfo.cs
- ApplicationManager.cs
- ObjectAssociationEndMapping.cs
- IMembershipProvider.cs
- TemplateXamlParser.cs
- Table.cs
- DetailsViewPagerRow.cs
- DesignerCategoryAttribute.cs
- XmlNodeChangedEventArgs.cs
- SQLString.cs
- RoleProviderPrincipal.cs
- DataColumnMapping.cs
- QualifiedCellIdBoolean.cs
- WebBrowser.cs
- RequestCacheEntry.cs
- DataGridViewCellValueEventArgs.cs
- FormView.cs
- WebPartMenu.cs
- IssuedSecurityTokenParameters.cs
- OutputCacheProfileCollection.cs
- FilteredDataSetHelper.cs
- VarInfo.cs
- MemberProjectionIndex.cs
- CaretElement.cs
- InvalidPropValue.cs
- Size.cs
- HttpCapabilitiesBase.cs
- DataControlCommands.cs
- ContainerControl.cs
- FixedPageAutomationPeer.cs
- CultureSpecificStringDictionary.cs
- OutputCacheSettingsSection.cs
- DbInsertCommandTree.cs
- MissingMethodException.cs