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
- UInt16.cs
- UndirectedGraph.cs
- DocumentSequence.cs
- DisplayNameAttribute.cs
- ListBindingHelper.cs
- FastEncoderWindow.cs
- TextCompositionEventArgs.cs
- ClientSettingsProvider.cs
- Rijndael.cs
- TableCell.cs
- XmlElementAttribute.cs
- PerfService.cs
- Odbc32.cs
- HtmlValidatorAdapter.cs
- HttpConfigurationSystem.cs
- HttpHandlerActionCollection.cs
- CommonRemoteMemoryBlock.cs
- DoubleCollectionConverter.cs
- ScriptingRoleServiceSection.cs
- IgnoreDeviceFilterElementCollection.cs
- LocalizableResourceBuilder.cs
- Misc.cs
- ResizingMessageFilter.cs
- PrintPreviewGraphics.cs
- BinHexEncoder.cs
- ConstrainedDataObject.cs
- WindowsGraphics2.cs
- MailMessageEventArgs.cs
- GridViewDeleteEventArgs.cs
- DesignerAutoFormatStyle.cs
- GridViewRowEventArgs.cs
- BufferModesCollection.cs
- GenericRootAutomationPeer.cs
- Crypto.cs
- ObjectDataSourceSelectingEventArgs.cs
- IDReferencePropertyAttribute.cs
- GlobalItem.cs
- CanExecuteRoutedEventArgs.cs
- TreeNodeCollection.cs
- HyperLink.cs
- LabelTarget.cs
- ErrorStyle.cs
- HebrewCalendar.cs
- CustomAttributeFormatException.cs
- AssociationEndMember.cs
- XmlObjectSerializerContext.cs
- XmlNamespaceDeclarationsAttribute.cs
- KnownTypeDataContractResolver.cs
- BindingRestrictions.cs
- RefExpr.cs
- GeometryGroup.cs
- DiscreteKeyFrames.cs
- Intellisense.cs
- HtmlControlPersistable.cs
- Vector3D.cs
- StringFormat.cs
- TailPinnedEventArgs.cs
- PictureBoxDesigner.cs
- PropertyItem.cs
- NameValueCollection.cs
- TextContainerChangedEventArgs.cs
- LinkTarget.cs
- ScrollBar.cs
- OptionalColumn.cs
- XpsManager.cs
- remotingproxy.cs
- SoapUnknownHeader.cs
- PageRequestManager.cs
- Scene3D.cs
- FormViewPagerRow.cs
- CustomAttribute.cs
- HttpRequestCacheValidator.cs
- DialogWindow.cs
- TimeStampChecker.cs
- GraphicsPathIterator.cs
- documentsequencetextview.cs
- TypeForwardedToAttribute.cs
- BamlResourceDeserializer.cs
- _Semaphore.cs
- PreparingEnlistment.cs
- WebPartExportVerb.cs
- NullableBoolConverter.cs
- FamilyCollection.cs
- AssemblyFilter.cs
- HttpServerChannel.cs
- Size.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- MailDefinition.cs
- RawStylusInput.cs
- SearchForVirtualItemEventArgs.cs
- DesignerSerializerAttribute.cs
- SqlRowUpdatedEvent.cs
- DataGridViewDataConnection.cs
- StylusButtonEventArgs.cs
- MessageDesigner.cs
- SourceFilter.cs
- DataGridViewCellValueEventArgs.cs
- oledbconnectionstring.cs
- InlineCollection.cs
- StateMachine.cs