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
- ToolStripRendererSwitcher.cs
- TypeGeneratedEventArgs.cs
- SimpleApplicationHost.cs
- AuthorizationContext.cs
- MetadataHelper.cs
- XmlRawWriter.cs
- HwndTarget.cs
- DataGridTextBoxColumn.cs
- IgnoreFlushAndCloseStream.cs
- SqlWriter.cs
- ListControlActionList.cs
- NamedElement.cs
- BasePattern.cs
- EncoderParameter.cs
- LinkedResource.cs
- DataRow.cs
- PolyBezierSegment.cs
- CompileLiteralTextParser.cs
- AgileSafeNativeMemoryHandle.cs
- ThreadExceptionDialog.cs
- Update.cs
- DataTable.cs
- UserControl.cs
- CustomExpression.cs
- XhtmlBasicCalendarAdapter.cs
- BaseParser.cs
- UnsafeNativeMethods.cs
- SessionStateModule.cs
- Parser.cs
- OneOfTypeConst.cs
- AnimatedTypeHelpers.cs
- Vars.cs
- DynamicValueConverter.cs
- ManagedIStream.cs
- QilPatternVisitor.cs
- InplaceBitmapMetadataWriter.cs
- DataGridCell.cs
- HttpCapabilitiesBase.cs
- SmiXetterAccessMap.cs
- PseudoWebRequest.cs
- TemplatePagerField.cs
- GenerateScriptTypeAttribute.cs
- SimpleWorkerRequest.cs
- ByteAnimation.cs
- ListBase.cs
- EventToken.cs
- CatalogZoneBase.cs
- FileDialog_Vista.cs
- LiteralControl.cs
- SettingsPropertyIsReadOnlyException.cs
- TaiwanLunisolarCalendar.cs
- SecurityDocument.cs
- SystemColors.cs
- GroupBox.cs
- GraphicsState.cs
- MetaModel.cs
- ListViewGroupItemCollection.cs
- WebPartDisplayModeCollection.cs
- ApplicationException.cs
- PageSetupDialog.cs
- EmptyEnumerator.cs
- DynamicControlParameter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- OleDbParameterCollection.cs
- NotFiniteNumberException.cs
- BitmapEffectInputConnector.cs
- ProcessHostConfigUtils.cs
- WebResponse.cs
- ToolStripContainer.cs
- EdmEntityTypeAttribute.cs
- SourceElementsCollection.cs
- BuilderPropertyEntry.cs
- ThemeableAttribute.cs
- GACIdentityPermission.cs
- EntityContainer.cs
- ScriptingJsonSerializationSection.cs
- TracedNativeMethods.cs
- VarRefManager.cs
- ResXResourceReader.cs
- Calendar.cs
- BrowserDefinition.cs
- InternalPermissions.cs
- DataSourceControl.cs
- XmlSchemaGroupRef.cs
- DesignOnlyAttribute.cs
- RawKeyboardInputReport.cs
- OutOfProcStateClientManager.cs
- GlobalizationSection.cs
- EditorZoneDesigner.cs
- SafeNativeMethods.cs
- xmlformatgeneratorstatics.cs
- PointLightBase.cs
- ColorInterpolationModeValidation.cs
- ConditionChanges.cs
- WebBrowserSiteBase.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ScrollProperties.cs
- SortAction.cs
- ObjectMemberMapping.cs
- GraphicsContainer.cs