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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MulticastDelegate.cs
- Funcletizer.cs
- Type.cs
- MultipartContentParser.cs
- Pair.cs
- PageHandlerFactory.cs
- DisableDpiAwarenessAttribute.cs
- TextElementCollectionHelper.cs
- TextElementEnumerator.cs
- TaskCanceledException.cs
- PassportAuthenticationEventArgs.cs
- VectorAnimationUsingKeyFrames.cs
- PropertyIdentifier.cs
- WSHttpBindingBase.cs
- XmlSchemaSimpleContentExtension.cs
- Int64KeyFrameCollection.cs
- TextEditorLists.cs
- HTMLTagNameToTypeMapper.cs
- DockProviderWrapper.cs
- SymmetricSecurityProtocolFactory.cs
- StrokeIntersection.cs
- ZoneButton.cs
- ImageConverter.cs
- QueryConverter.cs
- Assign.cs
- DataGridViewRowStateChangedEventArgs.cs
- hwndwrapper.cs
- HtmlFormWrapper.cs
- ViewBox.cs
- SystemColors.cs
- RadioButtonRenderer.cs
- TrueReadOnlyCollection.cs
- AccessDataSourceView.cs
- SimpleRecyclingCache.cs
- ToolStripItemDataObject.cs
- ColorAnimation.cs
- XhtmlBasicLinkAdapter.cs
- ExeContext.cs
- GenericIdentity.cs
- Imaging.cs
- DebugView.cs
- CodeSubDirectoriesCollection.cs
- ExpandoObject.cs
- HttpRequestCacheValidator.cs
- ProvidersHelper.cs
- path.cs
- MetaChildrenColumn.cs
- LambdaCompiler.Unary.cs
- ZipIOBlockManager.cs
- SequenceRangeCollection.cs
- InvalidEnumArgumentException.cs
- CommandBinding.cs
- ProcessStartInfo.cs
- WeakHashtable.cs
- ByteRangeDownloader.cs
- IntSecurity.cs
- ItemContainerGenerator.cs
- TransactionManager.cs
- DataView.cs
- HorizontalAlignConverter.cs
- WCFBuildProvider.cs
- PropertyDescriptorComparer.cs
- ConsoleCancelEventArgs.cs
- XPathSelfQuery.cs
- CompilerCollection.cs
- CodeStatement.cs
- SortableBindingList.cs
- EntityRecordInfo.cs
- Avt.cs
- Color.cs
- EditingCoordinator.cs
- OutOfMemoryException.cs
- SchemaMerger.cs
- _TLSstream.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- IdentityModelStringsVersion1.cs
- ExceptionAggregator.cs
- OdbcConnectionString.cs
- DesignerActionUIStateChangeEventArgs.cs
- TrustSection.cs
- PolyBezierSegment.cs
- BackgroundFormatInfo.cs
- ErrorWebPart.cs
- BlurEffect.cs
- CopyEncoder.cs
- TextComposition.cs
- CompilerState.cs
- NavigationWindow.cs
- ProfileInfo.cs
- ComUdtElementCollection.cs
- TypefaceMap.cs
- BrowserDefinitionCollection.cs
- MimeReturn.cs
- Resources.Designer.cs
- DbProviderConfigurationHandler.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- TabletDeviceInfo.cs
- ArrayWithOffset.cs
- ConnectionManagementElementCollection.cs