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
- XmlSchemaSimpleTypeUnion.cs
- WriteableBitmap.cs
- StringDictionaryCodeDomSerializer.cs
- StrokeNodeData.cs
- CannotUnloadAppDomainException.cs
- DataGridRow.cs
- FileEnumerator.cs
- EventHandlerList.cs
- ProxyWebPart.cs
- XdrBuilder.cs
- XmlChoiceIdentifierAttribute.cs
- LoginUtil.cs
- InfiniteTimeSpanConverter.cs
- DependencyPropertyConverter.cs
- ErrorHandler.cs
- ConditionalBranch.cs
- EdmItemError.cs
- MenuItemStyleCollection.cs
- TripleDESCryptoServiceProvider.cs
- TokenizerHelper.cs
- ReadOnlyObservableCollection.cs
- LineServices.cs
- ZoneIdentityPermission.cs
- AnnotationResourceChangedEventArgs.cs
- EdmToObjectNamespaceMap.cs
- ObjectDataSourceDisposingEventArgs.cs
- LineServicesCallbacks.cs
- EventRouteFactory.cs
- BoolExpression.cs
- ClientSettings.cs
- TypeResolver.cs
- ProvidersHelper.cs
- ExpressionVisitorHelpers.cs
- NumericPagerField.cs
- MembershipUser.cs
- ServiceOperationWrapper.cs
- TextEditorThreadLocalStore.cs
- Imaging.cs
- Brush.cs
- OracleColumn.cs
- precedingquery.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WeakReadOnlyCollection.cs
- Assert.cs
- FileCodeGroup.cs
- ExpressionCopier.cs
- XmlComplianceUtil.cs
- RealizationContext.cs
- WebPartZoneCollection.cs
- TreeViewTemplateSelector.cs
- ISFClipboardData.cs
- NotificationContext.cs
- StrokeNodeData.cs
- WindowsRebar.cs
- HwndMouseInputProvider.cs
- IUnknownConstantAttribute.cs
- DefaultBinder.cs
- Configuration.cs
- StorageInfo.cs
- DbMetaDataColumnNames.cs
- SocketCache.cs
- LinkConverter.cs
- ResXResourceSet.cs
- ObjectConverter.cs
- QueryInterceptorAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- _TimerThread.cs
- JapaneseCalendar.cs
- GifBitmapEncoder.cs
- RuntimeHandles.cs
- HostExecutionContextManager.cs
- HopperCache.cs
- DocumentViewerHelper.cs
- SchemaCollectionCompiler.cs
- DesignerTransactionCloseEvent.cs
- TimeSpanValidatorAttribute.cs
- SafeTimerHandle.cs
- XamlSerializerUtil.cs
- Types.cs
- TraceSource.cs
- ErasingStroke.cs
- Array.cs
- XmlAttribute.cs
- TextWriter.cs
- WinInet.cs
- CallInfo.cs
- GridViewRow.cs
- ThicknessKeyFrameCollection.cs
- ToolStripInSituService.cs
- ConnectionStringsExpressionBuilder.cs
- PageParser.cs
- XmlArrayAttribute.cs
- LogLogRecordEnumerator.cs
- Monitor.cs
- FontCacheLogic.cs
- ObjectNotFoundException.cs
- DbException.cs
- sapiproxy.cs
- ResourcePool.cs
- HtmlValidationSummaryAdapter.cs