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
- ConsumerConnectionPointCollection.cs
- XmlIlGenerator.cs
- DataTrigger.cs
- DataGridViewDataConnection.cs
- newinstructionaction.cs
- PolyBezierSegmentFigureLogic.cs
- KeyGestureConverter.cs
- ModuleElement.cs
- DecoderExceptionFallback.cs
- TagNameToTypeMapper.cs
- TreeIterator.cs
- DefaultWorkflowSchedulerService.cs
- HttpBrowserCapabilitiesWrapper.cs
- TableSectionStyle.cs
- RequestCacheManager.cs
- BigInt.cs
- DetailsViewPageEventArgs.cs
- TextClipboardData.cs
- SoapMessage.cs
- IntPtr.cs
- Group.cs
- AmbientValueAttribute.cs
- EnvironmentPermission.cs
- GridViewCommandEventArgs.cs
- ProbeDuplexCD1AsyncResult.cs
- MetadataPropertyCollection.cs
- DockingAttribute.cs
- TransformProviderWrapper.cs
- ExpressionParser.cs
- InertiaRotationBehavior.cs
- EventDriven.cs
- ForAllOperator.cs
- MetadataItemSerializer.cs
- XamlPointCollectionSerializer.cs
- MatrixTransform3D.cs
- StorageMappingFragment.cs
- TextTabProperties.cs
- StrokeNodeEnumerator.cs
- ToolstripProfessionalRenderer.cs
- DashStyles.cs
- ReferenceSchema.cs
- ScaleTransform.cs
- CrossContextChannel.cs
- GreenMethods.cs
- ReturnValue.cs
- TextEndOfSegment.cs
- XMLUtil.cs
- TextServicesCompartment.cs
- DesignConnectionCollection.cs
- SymbolEqualComparer.cs
- ModifierKeysValueSerializer.cs
- ObjectParameter.cs
- BuilderPropertyEntry.cs
- XmlSchemaComplexContentExtension.cs
- CategoryNameCollection.cs
- KnownColorTable.cs
- OleAutBinder.cs
- TreeViewTemplateSelector.cs
- KeyToListMap.cs
- StateDesigner.Helpers.cs
- ListSurrogate.cs
- SecurityKeyType.cs
- LayoutUtils.cs
- _SingleItemRequestCache.cs
- PropertyChangedEventArgs.cs
- EtwTrace.cs
- PropertyChangingEventArgs.cs
- NameValueConfigurationCollection.cs
- ActivityWithResultConverter.cs
- NamespaceCollection.cs
- PageSettings.cs
- RawUIStateInputReport.cs
- AssemblyAttributes.cs
- ListViewDeleteEventArgs.cs
- EventSourceCreationData.cs
- SQLInt32.cs
- FrugalList.cs
- SoapTypeAttribute.cs
- ZoneMembershipCondition.cs
- NamespaceListProperty.cs
- PagesSection.cs
- MergablePropertyAttribute.cs
- MSAAEventDispatcher.cs
- StandardCommands.cs
- XmlDataSource.cs
- CodeComment.cs
- SiteOfOriginPart.cs
- VectorAnimationBase.cs
- XsltCompileContext.cs
- LicFileLicenseProvider.cs
- ContravarianceAdapter.cs
- IERequestCache.cs
- ConfigurationErrorsException.cs
- FormViewUpdateEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SqlRowUpdatingEvent.cs
- DetailsViewPageEventArgs.cs
- Ref.cs
- TextRangeEditTables.cs
- HMACSHA1.cs