Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HttpDictionary.cs
- GcSettings.cs
- ConsumerConnectionPoint.cs
- SiteMapHierarchicalDataSourceView.cs
- CodePageEncoding.cs
- ChildrenQuery.cs
- SiteMap.cs
- TextSpanModifier.cs
- PersonalizableAttribute.cs
- CharAnimationUsingKeyFrames.cs
- Socket.cs
- CodeDirectoryCompiler.cs
- HeaderedItemsControl.cs
- PointKeyFrameCollection.cs
- BaseServiceProvider.cs
- SaveCardRequest.cs
- DataGridViewTextBoxEditingControl.cs
- HttpServerUtilityWrapper.cs
- DefaultAssemblyResolver.cs
- externdll.cs
- PropertyGridView.cs
- UInt64Converter.cs
- ToolStripControlHost.cs
- SafeFindHandle.cs
- FocusTracker.cs
- EventlogProvider.cs
- BuildProviderCollection.cs
- TextAction.cs
- XmlResolver.cs
- ToolStripContainer.cs
- ProcessHostMapPath.cs
- SourceLineInfo.cs
- EventLogPermissionEntry.cs
- ResourceFallbackManager.cs
- AttachedPropertyDescriptor.cs
- TextClipboardData.cs
- ReturnEventArgs.cs
- sitestring.cs
- CacheMemory.cs
- ControlBuilder.cs
- UIElementParagraph.cs
- MatrixAnimationUsingKeyFrames.cs
- EllipseGeometry.cs
- GlyphingCache.cs
- RegisteredDisposeScript.cs
- BinaryCommonClasses.cs
- PackageDigitalSignatureManager.cs
- ImageButton.cs
- LoadedOrUnloadedOperation.cs
- DocumentViewerAutomationPeer.cs
- FontStyleConverter.cs
- TextSelectionHighlightLayer.cs
- ExpressionNode.cs
- CreateUserWizardStep.cs
- Thickness.cs
- WebPartZoneBase.cs
- Binding.cs
- XmlValidatingReader.cs
- ComponentChangedEvent.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SemanticAnalyzer.cs
- AnnotationResourceChangedEventArgs.cs
- DirtyTextRange.cs
- Preprocessor.cs
- XmlIncludeAttribute.cs
- QilPatternFactory.cs
- SupportingTokenProviderSpecification.cs
- ColorDialog.cs
- NumberFormatter.cs
- NavigationWindowAutomationPeer.cs
- DbXmlEnabledProviderManifest.cs
- SequentialOutput.cs
- EntityDataSource.cs
- BitmapEffectGroup.cs
- DataBoundControl.cs
- CustomErrorCollection.cs
- InputLanguageSource.cs
- RangeValuePattern.cs
- DropShadowEffect.cs
- FileChangeNotifier.cs
- CornerRadius.cs
- parserscommon.cs
- URIFormatException.cs
- CalendarDateRangeChangingEventArgs.cs
- SafeThreadHandle.cs
- BaseTransportHeaders.cs
- TextProperties.cs
- ComboBoxRenderer.cs
- ReadContentAsBinaryHelper.cs
- KeyToListMap.cs
- RelOps.cs
- SocketManager.cs
- XpsImage.cs
- securitycriticaldata.cs
- SessionPageStateSection.cs
- ThreadInterruptedException.cs
- RectKeyFrameCollection.cs
- ContextConfiguration.cs
- _DomainName.cs
- InitializationEventAttribute.cs