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
- WebPartDisplayModeEventArgs.cs
- ObfuscateAssemblyAttribute.cs
- CodePageUtils.cs
- DisplayMemberTemplateSelector.cs
- GorillaCodec.cs
- WebPartsSection.cs
- WsdlBuildProvider.cs
- Rect.cs
- Quaternion.cs
- HandledMouseEvent.cs
- StoreAnnotationsMap.cs
- BindToObject.cs
- ExtendedPropertyDescriptor.cs
- WebDisplayNameAttribute.cs
- OverrideMode.cs
- CacheMemory.cs
- AttributeInfo.cs
- UriTemplateLiteralQueryValue.cs
- FilterableAttribute.cs
- CellNormalizer.cs
- EventSetter.cs
- HwndProxyElementProvider.cs
- RegexGroupCollection.cs
- ComponentRenameEvent.cs
- DataGridViewRowPrePaintEventArgs.cs
- WCFModelStrings.Designer.cs
- ArrayWithOffset.cs
- TextBox.cs
- SimpleExpression.cs
- PeerNodeAddress.cs
- Propagator.ExtentPlaceholderCreator.cs
- DesignerDataView.cs
- DocumentApplicationJournalEntry.cs
- AnnotationDocumentPaginator.cs
- ItemContainerPattern.cs
- StringComparer.cs
- Operator.cs
- SignedXml.cs
- XpsResourceDictionary.cs
- CriticalFinalizerObject.cs
- SingleConverter.cs
- HttpApplication.cs
- DictionaryTraceRecord.cs
- SpellerHighlightLayer.cs
- DragDeltaEventArgs.cs
- FontNamesConverter.cs
- ConfigurationStrings.cs
- RoleGroupCollection.cs
- RawStylusInputCustomData.cs
- TabControlEvent.cs
- SchemaElementLookUpTable.cs
- PropertyRef.cs
- SqlBulkCopy.cs
- SimpleWebHandlerParser.cs
- __ComObject.cs
- Camera.cs
- TypeUnloadedException.cs
- DynamicDataManager.cs
- XmlNamespaceMapping.cs
- UriTemplateClientFormatter.cs
- XmlTextEncoder.cs
- FileRegion.cs
- GcSettings.cs
- ExpandSegment.cs
- WebPartConnectionCollection.cs
- CheckoutException.cs
- WebBrowserNavigatingEventHandler.cs
- OSEnvironmentHelper.cs
- MergablePropertyAttribute.cs
- DataServiceQueryOfT.cs
- SafeLocalMemHandle.cs
- CacheSection.cs
- TypeUsageBuilder.cs
- StylusButton.cs
- FrameworkContextData.cs
- CodeDesigner.cs
- ListViewDeleteEventArgs.cs
- BlobPersonalizationState.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- XmlSubtreeReader.cs
- FontStyle.cs
- RuntimeHelpers.cs
- FontNameEditor.cs
- EntryWrittenEventArgs.cs
- Debugger.cs
- GridViewRow.cs
- GridViewDeleteEventArgs.cs
- HtmlShim.cs
- IPEndPoint.cs
- DeviceSpecific.cs
- ObjectSet.cs
- ResXResourceReader.cs
- TransactionFlowOption.cs
- PingReply.cs
- Point4DConverter.cs
- HttpChannelHelper.cs
- Dictionary.cs
- TableItemProviderWrapper.cs
- EmptyControlCollection.cs
- DropTarget.cs