Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WebConfigurationHostFileChange.cs
- RuntimeHandles.cs
- CharAnimationBase.cs
- KoreanLunisolarCalendar.cs
- ZipIOLocalFileHeader.cs
- SerializationAttributes.cs
- ProfileProvider.cs
- DataGridViewRowsAddedEventArgs.cs
- __Error.cs
- CompilerScopeManager.cs
- Stroke2.cs
- XmlAttributeCache.cs
- CommonDialog.cs
- ProfileSection.cs
- Assert.cs
- SqlDataSourceCache.cs
- DataKey.cs
- EntitySqlQueryState.cs
- MimeImporter.cs
- ContainerFilterService.cs
- EmptyEnumerator.cs
- ConditionBrowserDialog.cs
- DesignerTransaction.cs
- PolyBezierSegment.cs
- HttpRequestWrapper.cs
- DataGridViewImageColumn.cs
- MessageFilterException.cs
- EndPoint.cs
- ProxyGenerationError.cs
- XmlDictionaryWriter.cs
- RSAProtectedConfigurationProvider.cs
- MDIControlStrip.cs
- CleanUpVirtualizedItemEventArgs.cs
- WebRequestModuleElement.cs
- TimeZone.cs
- XmlILTrace.cs
- PagedDataSource.cs
- FormsAuthenticationTicket.cs
- EdmComplexPropertyAttribute.cs
- _RequestCacheProtocol.cs
- Journaling.cs
- DragEvent.cs
- XsdDataContractImporter.cs
- LocalizabilityAttribute.cs
- RegexInterpreter.cs
- X509ChainElement.cs
- MulticastOption.cs
- GenerateHelper.cs
- SqlDataRecord.cs
- counter.cs
- ConfigurationErrorsException.cs
- CdpEqualityComparer.cs
- DecoderExceptionFallback.cs
- QilNode.cs
- HtmlWindowCollection.cs
- ToolStripProgressBar.cs
- SmtpClient.cs
- ControlParameter.cs
- Transform3D.cs
- RotateTransform.cs
- CustomError.cs
- ToolBarButton.cs
- WebPart.cs
- MailMessageEventArgs.cs
- ManagedIStream.cs
- DefaultValueConverter.cs
- ResXResourceSet.cs
- HttpListenerRequest.cs
- TimeSpanMinutesConverter.cs
- SQLInt16Storage.cs
- AddingNewEventArgs.cs
- SoapProtocolImporter.cs
- BaseDataBoundControl.cs
- EdmProperty.cs
- FakeModelItemImpl.cs
- AutomationElementIdentifiers.cs
- SamlEvidence.cs
- TdsValueSetter.cs
- IDispatchConstantAttribute.cs
- ScaleTransform.cs
- InvalidCardException.cs
- MappingSource.cs
- SqlPersonalizationProvider.cs
- WebServiceClientProxyGenerator.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataSourceControlBuilder.cs
- ParameterBinding.cs
- ManipulationInertiaStartingEventArgs.cs
- controlskin.cs
- DataGridViewCellFormattingEventArgs.cs
- login.cs
- EntityContainerAssociationSet.cs
- BitmapVisualManager.cs
- HttpCookieCollection.cs
- ManualWorkflowSchedulerService.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ColumnBinding.cs
- PathSegmentCollection.cs
- MachineKeySection.cs
- PropertyValueChangedEvent.cs