Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Permissions / RightsManagementPermission.cs / 1305600 / 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. [Serializable] [FriendAccessAllowed] internal class RightsManagementPermission : InternalParameterlessPermissionBase { public RightsManagementPermission() : this(PermissionState.Unrestricted) { } public RightsManagementPermission(PermissionState state): base(state) { } 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
- BamlLocalizabilityResolver.cs
- NativeMethods.cs
- FixedElement.cs
- GlyphCache.cs
- WebZone.cs
- DisplayMemberTemplateSelector.cs
- WebResponse.cs
- DataErrorValidationRule.cs
- BinHexEncoder.cs
- KeyGesture.cs
- ControlBuilderAttribute.cs
- SqlNotificationEventArgs.cs
- SizeChangedInfo.cs
- WbmpConverter.cs
- StreamUpdate.cs
- VisualStyleTypesAndProperties.cs
- Error.cs
- ExtenderProvidedPropertyAttribute.cs
- ViewValidator.cs
- XmlQueryCardinality.cs
- ClassicBorderDecorator.cs
- AdPostCacheSubstitution.cs
- LineBreak.cs
- Automation.cs
- GridItemProviderWrapper.cs
- ElapsedEventArgs.cs
- DefaultValueAttribute.cs
- FlowDocumentReaderAutomationPeer.cs
- SafeHandle.cs
- InstalledFontCollection.cs
- DocumentXmlWriter.cs
- AuthenticationServiceManager.cs
- GenericsInstances.cs
- Route.cs
- DesignSurfaceCollection.cs
- EditorPartDesigner.cs
- MediaCommands.cs
- PolicyManager.cs
- DesignRelationCollection.cs
- SqlConnectionHelper.cs
- Privilege.cs
- ControlCollection.cs
- TreeNode.cs
- PropertyDescriptorGridEntry.cs
- GenericUI.cs
- TdsRecordBufferSetter.cs
- ChildTable.cs
- WebColorConverter.cs
- XamlRtfConverter.cs
- InProcStateClientManager.cs
- HashSet.cs
- ComponentChangedEvent.cs
- XamlFigureLengthSerializer.cs
- PointLight.cs
- ErrorFormatter.cs
- SpecularMaterial.cs
- TTSEngineProxy.cs
- BufferedResponseStream.cs
- CompareInfo.cs
- FixedSOMPageConstructor.cs
- FontFamilyValueSerializer.cs
- ListViewItemSelectionChangedEvent.cs
- CatalogZoneAutoFormat.cs
- FormatConvertedBitmap.cs
- Timer.cs
- XmlObjectSerializerReadContext.cs
- XdrBuilder.cs
- SqlMultiplexer.cs
- JoinCqlBlock.cs
- WebPartTracker.cs
- CellTreeNodeVisitors.cs
- XmlUtil.cs
- SessionStateContainer.cs
- ValidationPropertyAttribute.cs
- XmlNullResolver.cs
- DataGridItemAutomationPeer.cs
- RoleGroupCollection.cs
- AssemblyBuilder.cs
- OleDbErrorCollection.cs
- Char.cs
- ProcessHostServerConfig.cs
- PropertyInformation.cs
- ConnectionManagementElementCollection.cs
- RecordBuilder.cs
- WindowsFormsHelpers.cs
- EncryptedHeaderXml.cs
- ParallelDesigner.xaml.cs
- ParserStreamGeometryContext.cs
- DataGridItemCollection.cs
- ActivityMarkupSerializer.cs
- GeometryModel3D.cs
- MultiTouchSystemGestureLogic.cs
- HostedController.cs
- PersistNameAttribute.cs
- BitmapEncoder.cs
- Tokenizer.cs
- OLEDB_Enum.cs
- XmlKeywords.cs
- ModifiableIteratorCollection.cs
- RelationshipDetailsCollection.cs