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
- ResourceReferenceExpression.cs
- OleDbParameterCollection.cs
- StyleCollectionEditor.cs
- Serializer.cs
- IndentTextWriter.cs
- Symbol.cs
- SqlDataSourceCommandEventArgs.cs
- HttpBrowserCapabilitiesWrapper.cs
- PrimarySelectionGlyph.cs
- SqlCacheDependencyDatabaseCollection.cs
- NaturalLanguageHyphenator.cs
- SecureStringHasher.cs
- SystemFonts.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XmlSchemaCollection.cs
- ValidatedControlConverter.cs
- TextBoxBaseDesigner.cs
- SoundPlayer.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Error.cs
- Int16KeyFrameCollection.cs
- SqlTypeSystemProvider.cs
- TextEndOfParagraph.cs
- SpotLight.cs
- AnnotationAuthorChangedEventArgs.cs
- DebugHandleTracker.cs
- Errors.cs
- CachedPathData.cs
- SqlGatherConsumedAliases.cs
- IMembershipProvider.cs
- MessageSecurityOverHttpElement.cs
- BitmapFrameEncode.cs
- SizeConverter.cs
- DataTableMapping.cs
- AnimatedTypeHelpers.cs
- PtsHelper.cs
- TreeWalker.cs
- AdornerDecorator.cs
- PolyBezierSegment.cs
- AvTraceDetails.cs
- DrawingImage.cs
- DataGridCellInfo.cs
- SequenceRangeCollection.cs
- Paragraph.cs
- SystemException.cs
- Empty.cs
- ColorPalette.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- MultiView.cs
- FontUnit.cs
- OpCopier.cs
- DBSchemaTable.cs
- ColumnMap.cs
- XPathDescendantIterator.cs
- DataColumnMappingCollection.cs
- DataReaderContainer.cs
- xdrvalidator.cs
- CloudCollection.cs
- GregorianCalendar.cs
- SqlDataSourceRefreshSchemaForm.cs
- FormsAuthentication.cs
- TreeNodeCollection.cs
- XmlUrlResolver.cs
- SponsorHelper.cs
- EventArgs.cs
- OracleConnectionStringBuilder.cs
- StreamSecurityUpgradeInitiatorBase.cs
- XmlExpressionDumper.cs
- DataPointer.cs
- SessionParameter.cs
- WebPartExportVerb.cs
- AdPostCacheSubstitution.cs
- Delegate.cs
- SendActivityDesigner.cs
- RuleRef.cs
- DelegatedStream.cs
- DbTypeMap.cs
- ConditionalBranch.cs
- ObjectItemConventionAssemblyLoader.cs
- QueryResult.cs
- MarkedHighlightComponent.cs
- PriorityChain.cs
- MenuCommands.cs
- HttpCachePolicyElement.cs
- QilXmlReader.cs
- PermissionSetTriple.cs
- MsmqSecureHashAlgorithm.cs
- XmlSerializerFactory.cs
- TextPattern.cs
- NavigationWindow.cs
- TemplateField.cs
- IntSumAggregationOperator.cs
- GetMemberBinder.cs
- DbXmlEnabledProviderManifest.cs
- Win32KeyboardDevice.cs
- CreateUserWizard.cs
- ModulesEntry.cs
- DependentList.cs
- StreamInfo.cs
- SoapSchemaImporter.cs