Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- XamlBuildTaskServices.cs
- SqlDataAdapter.cs
- InputLanguageManager.cs
- ContentPlaceHolder.cs
- ConsumerConnectionPointCollection.cs
- EntityDataSourceChangedEventArgs.cs
- PrintingPermissionAttribute.cs
- DetailsViewPageEventArgs.cs
- InlineUIContainer.cs
- ProfileGroupSettings.cs
- TargetConverter.cs
- ControlPaint.cs
- ResXResourceSet.cs
- GridViewRowCollection.cs
- MaterializeFromAtom.cs
- CounterSampleCalculator.cs
- PolyBezierSegmentFigureLogic.cs
- XmlIgnoreAttribute.cs
- SoapWriter.cs
- PropertyCollection.cs
- PackagePartCollection.cs
- ColumnWidthChangedEvent.cs
- OpacityConverter.cs
- SafeEventLogWriteHandle.cs
- ArraySubsetEnumerator.cs
- ConvertTextFrag.cs
- DropAnimation.xaml.cs
- ItemList.cs
- IndexedSelectQueryOperator.cs
- VisualTreeHelper.cs
- SequenceDesigner.cs
- HostedHttpTransportManager.cs
- DesignOnlyAttribute.cs
- StylusPointCollection.cs
- WebHttpSecurity.cs
- SchemaMerger.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- GraphicsState.cs
- FixedSOMTextRun.cs
- xmlNames.cs
- InfoCardTraceRecord.cs
- CapacityStreamGeometryContext.cs
- MessageSecurityProtocolFactory.cs
- DbExpressionBuilder.cs
- xml.cs
- TextEditorCharacters.cs
- NotifyCollectionChangedEventArgs.cs
- Monitor.cs
- ShapingEngine.cs
- ObjectListTitleAttribute.cs
- XmlMapping.cs
- ResourceKey.cs
- EntityPropertyMappingAttribute.cs
- SmtpMail.cs
- ExeContext.cs
- QilTernary.cs
- LicenseContext.cs
- SHA512.cs
- Evidence.cs
- LoginName.cs
- DelegatedStream.cs
- DependentList.cs
- CalendarDayButton.cs
- AttributeData.cs
- ApplicationId.cs
- ImpersonateTokenRef.cs
- PersonalizationStateInfo.cs
- ParallelRangeManager.cs
- WebControlAdapter.cs
- ToolStripItemTextRenderEventArgs.cs
- DataSourceCache.cs
- Logging.cs
- SafeHandle.cs
- ILGenerator.cs
- SpoolingTask.cs
- MimeMapping.cs
- ReferentialConstraint.cs
- ClassValidator.cs
- DeclarativeExpressionConditionDeclaration.cs
- DockPattern.cs
- PointUtil.cs
- HtmlInputImage.cs
- AutomationPatternInfo.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TokenizerHelper.cs
- HtmlTernaryTree.cs
- InputLangChangeRequestEvent.cs
- TypefaceMetricsCache.cs
- EditorBrowsableAttribute.cs
- OleDbParameter.cs
- IteratorFilter.cs
- KeyedCollection.cs
- CodeTryCatchFinallyStatement.cs
- columnmapkeybuilder.cs
- RelatedView.cs
- DataBindEngine.cs
- SaveFileDialog.cs
- PassportIdentity.cs
- SimplePropertyEntry.cs
- PageClientProxyGenerator.cs