Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyEnumerator.cs
- ContextMenu.cs
- PassportPrincipal.cs
- SecurityHeader.cs
- TagPrefixAttribute.cs
- DiagnosticTrace.cs
- LogicalExpressionTypeConverter.cs
- ping.cs
- XmlWhitespace.cs
- BindingMAnagerBase.cs
- AvtEvent.cs
- CanonicalFontFamilyReference.cs
- SqlDataSourceSelectingEventArgs.cs
- BufferedGraphicsContext.cs
- TextRunCache.cs
- TextLineBreak.cs
- TextRangeSerialization.cs
- WindowsMenu.cs
- SymmetricKeyWrap.cs
- RoutedEventArgs.cs
- UnicodeEncoding.cs
- FlowDocumentScrollViewer.cs
- EventLogReader.cs
- DataGridParentRows.cs
- DbParameterHelper.cs
- WebReference.cs
- RemoteHelper.cs
- RuleSet.cs
- XmlWriterDelegator.cs
- WebServiceMethodData.cs
- Thread.cs
- EndpointIdentity.cs
- StopRoutingHandler.cs
- LocatorPartList.cs
- ScrollProperties.cs
- ComponentEditorPage.cs
- IndexedString.cs
- InputBindingCollection.cs
- CodeMemberEvent.cs
- ConfigXmlComment.cs
- ResourceIDHelper.cs
- ComponentChangingEvent.cs
- NumericPagerField.cs
- CodeNamespaceImport.cs
- DataSourceSelectArguments.cs
- OutputScope.cs
- EntityParameterCollection.cs
- SelfSignedCertificate.cs
- DataObjectAttribute.cs
- NameValuePermission.cs
- MasterPageParser.cs
- ListItemConverter.cs
- ETagAttribute.cs
- TableColumn.cs
- ZeroOpNode.cs
- ParameterModifier.cs
- designeractionlistschangedeventargs.cs
- HtmlInputHidden.cs
- CanonicalFontFamilyReference.cs
- StringOutput.cs
- ExpressionBuilderContext.cs
- Pair.cs
- PartialList.cs
- CompileLiteralTextParser.cs
- ResourceManagerWrapper.cs
- SqlRowUpdatingEvent.cs
- TextEditorLists.cs
- JoinSymbol.cs
- LinkLabel.cs
- Buffer.cs
- ValidatingReaderNodeData.cs
- ServerValidateEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- String.cs
- DataServices.cs
- QuaternionAnimationBase.cs
- SolidBrush.cs
- SchemaCollectionCompiler.cs
- CompositeFontInfo.cs
- UpdatePanelTriggerCollection.cs
- BinaryNegotiation.cs
- TransactedReceiveScope.cs
- TableDetailsRow.cs
- RightsManagementPermission.cs
- FontFamily.cs
- FormatterServices.cs
- Sql8ConformanceChecker.cs
- CategoryGridEntry.cs
- OleDbError.cs
- PackageFilter.cs
- HebrewCalendar.cs
- CaseStatementSlot.cs
- TreeNodeMouseHoverEvent.cs
- RecognizerStateChangedEventArgs.cs
- GifBitmapDecoder.cs
- TextInfo.cs
- GenericTypeParameterBuilder.cs
- MenuCommands.cs
- RequestResizeEvent.cs
- FlowNode.cs