Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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
- XmlEncodedRawTextWriter.cs
- SerialStream.cs
- SymmetricSecurityProtocolFactory.cs
- Base64Encoder.cs
- SupportingTokenListenerFactory.cs
- ListItemCollection.cs
- SafeLibraryHandle.cs
- RegexInterpreter.cs
- RelatedView.cs
- WebPartConnectionsConfigureVerb.cs
- EmptyEnumerator.cs
- QuaternionAnimationUsingKeyFrames.cs
- EventPropertyMap.cs
- DeploymentSectionCache.cs
- SqlCommand.cs
- FacetDescription.cs
- CodeTypeReferenceSerializer.cs
- FrameworkElementAutomationPeer.cs
- HtmlElementErrorEventArgs.cs
- EditingMode.cs
- ToolStripItemRenderEventArgs.cs
- DataServiceContext.cs
- ComponentResourceManager.cs
- LambdaCompiler.ControlFlow.cs
- InstanceDataCollection.cs
- CultureInfoConverter.cs
- WebBrowserNavigatingEventHandler.cs
- IgnoreFileBuildProvider.cs
- _StreamFramer.cs
- SmtpAuthenticationManager.cs
- ToolTip.cs
- GroupDescription.cs
- MenuItem.cs
- ProxyAttribute.cs
- AppDomain.cs
- TableLayoutColumnStyleCollection.cs
- SafeArrayRankMismatchException.cs
- NavigationCommands.cs
- ListViewHitTestInfo.cs
- SecUtil.cs
- LogFlushAsyncResult.cs
- DataServiceHostFactory.cs
- BamlCollectionHolder.cs
- ActivationWorker.cs
- SettingsContext.cs
- HitTestResult.cs
- JulianCalendar.cs
- VectorConverter.cs
- MultiBinding.cs
- FormsIdentity.cs
- PackageStore.cs
- WorkflowItemPresenter.cs
- HttpCacheParams.cs
- MenuItemCollection.cs
- QueryStringParameter.cs
- UmAlQuraCalendar.cs
- RenameRuleObjectDialog.cs
- DefaultSerializationProviderAttribute.cs
- BuildProvider.cs
- CollectionCodeDomSerializer.cs
- XPathQilFactory.cs
- SRef.cs
- ObjectDataSourceDisposingEventArgs.cs
- VersionedStreamOwner.cs
- GridViewRowEventArgs.cs
- StandardBindingCollectionElement.cs
- FormatConvertedBitmap.cs
- StylusLogic.cs
- PlatformNotSupportedException.cs
- ToolStripButton.cs
- SoapInteropTypes.cs
- Dump.cs
- FileInfo.cs
- ConfigUtil.cs
- basecomparevalidator.cs
- UdpTransportSettings.cs
- BoundPropertyEntry.cs
- PersonalizationAdministration.cs
- SqlInternalConnectionSmi.cs
- DefaultConfirmation.cs
- VisualState.cs
- ProviderMetadata.cs
- SectionXmlInfo.cs
- SoundPlayer.cs
- XmlWriterTraceListener.cs
- StructuredProperty.cs
- GeneralTransform3DTo2DTo3D.cs
- PersonalizableTypeEntry.cs
- MarshalByValueComponent.cs
- SQLSingle.cs
- CodeNamespaceImportCollection.cs
- ClientBuildManager.cs
- DrawTreeNodeEventArgs.cs
- FontWeight.cs
- DictionaryEditChange.cs
- _OverlappedAsyncResult.cs
- AtlasWeb.Designer.cs
- MissingSatelliteAssemblyException.cs
- TemplateKey.cs
- ParameterReplacerVisitor.cs