Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / MS / Internal / Permissions / CompoundFileIOPermission.cs / 1 / CompoundFileIOPermission.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: CompoundFile IO Permission. // It is a class for permission that will be asserted/demanded internally. // Only XPSViewer (or Mongoose) code will assert this permission. // // Using it allows the following: // We can have very specific targeted asserts for enabling EncryptedPackageEnevelope // and CompoundFile IO APIs. // This is to provide a granular permission for CompoundFile IO operations to be used // by XPSViewer to enable Encrypted Documents scenarios in Partial Trust // rather than asserting broader permission such as Unmanaged Code // // !!!! Warning !!!!: No code other than XPSViewer (or Mongoose) should assert this // permission without agreement from this code owners. // // History: // 02/10/06 : 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 XPSViewer (or Mongoose) should assert this // permission without agreement from this code owners. [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalPermissionBase { public CompoundFileIOPermission() : base() { } public override IPermission Copy() { // There is no state: just return a new instance of CompoudFileIOPermission return new CompoundFileIOPermission(); } } } // 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: CompoundFile IO Permission. // It is a class for permission that will be asserted/demanded internally. // Only XPSViewer (or Mongoose) code will assert this permission. // // Using it allows the following: // We can have very specific targeted asserts for enabling EncryptedPackageEnevelope // and CompoundFile IO APIs. // This is to provide a granular permission for CompoundFile IO operations to be used // by XPSViewer to enable Encrypted Documents scenarios in Partial Trust // rather than asserting broader permission such as Unmanaged Code // // !!!! Warning !!!!: No code other than XPSViewer (or Mongoose) should assert this // permission without agreement from this code owners. // // History: // 02/10/06 : 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 XPSViewer (or Mongoose) should assert this // permission without agreement from this code owners. [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalPermissionBase { public CompoundFileIOPermission() : base() { } public override IPermission Copy() { // There is no state: just return a new instance of CompoudFileIOPermission return new CompoundFileIOPermission(); } } } // 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
- ColumnClickEvent.cs
- OutputCacheSettingsSection.cs
- ModelMemberCollection.cs
- DoWorkEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs
- CurrencyWrapper.cs
- CultureInfoConverter.cs
- HwndSource.cs
- ObjectDataSourceEventArgs.cs
- Page.cs
- ApplySecurityAndSendAsyncResult.cs
- SuppressIldasmAttribute.cs
- PropertyIDSet.cs
- _NtlmClient.cs
- TrustLevelCollection.cs
- GenericRootAutomationPeer.cs
- GridViewDeleteEventArgs.cs
- XPathBinder.cs
- QuotedPrintableStream.cs
- ColumnMapTranslator.cs
- AttachmentService.cs
- ControlParser.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- WinInetCache.cs
- UrlAuthFailedErrorFormatter.cs
- SchemaCollectionPreprocessor.cs
- SpotLight.cs
- TextDecorationCollection.cs
- AdornedElementPlaceholder.cs
- Encoder.cs
- ToolStripSeparatorRenderEventArgs.cs
- FieldToken.cs
- AdRotatorDesigner.cs
- HtmlInputSubmit.cs
- TypeValidationEventArgs.cs
- MimeTypePropertyAttribute.cs
- UInt16.cs
- StringAttributeCollection.cs
- WebResourceUtil.cs
- HitTestResult.cs
- ZipPackage.cs
- XmlWriterTraceListener.cs
- DecimalConstantAttribute.cs
- DynamicQueryStringParameter.cs
- PreloadedPackages.cs
- PersonalizableAttribute.cs
- InstancePersistence.cs
- BooleanExpr.cs
- ToolStripRendererSwitcher.cs
- NetworkInformationPermission.cs
- EpmSourcePathSegment.cs
- EditorZone.cs
- ObjectDesignerDataSourceView.cs
- SqlDataSourceView.cs
- ClientTarget.cs
- StreamSecurityUpgradeInitiatorBase.cs
- safesecurityhelperavalon.cs
- PolicyLevel.cs
- wgx_sdk_version.cs
- ReverseInheritProperty.cs
- ChannelProtectionRequirements.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- IfAction.cs
- DockPattern.cs
- WebException.cs
- Dump.cs
- CancelEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- X509Certificate2.cs
- Int32Collection.cs
- DelegatingTypeDescriptionProvider.cs
- UxThemeWrapper.cs
- ActivityExecutionFilter.cs
- PointUtil.cs
- Symbol.cs
- PagedDataSource.cs
- EndOfStreamException.cs
- GeneralTransform3DTo2DTo3D.cs
- DataColumnMapping.cs
- PowerStatus.cs
- relpropertyhelper.cs
- ProcessRequestArgs.cs
- HttpDebugHandler.cs
- DataError.cs
- DataGridViewCellCollection.cs
- SqlNamer.cs
- SplitterPanel.cs
- GorillaCodec.cs
- COM2TypeInfoProcessor.cs
- _ScatterGatherBuffers.cs
- DBPropSet.cs
- InternalSafeNativeMethods.cs
- PackageRelationshipSelector.cs
- XmlDataSource.cs
- MetadataCache.cs
- HttpWrapper.cs
- ToolStripDesignerUtils.cs
- AgileSafeNativeMemoryHandle.cs
- HttpCachePolicyElement.cs
- ClientCultureInfo.cs