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
- XhtmlCssHandler.cs
- AuthenticationSection.cs
- ExpressionEditorAttribute.cs
- CodeNamespaceImportCollection.cs
- XslAst.cs
- TemplateParser.cs
- webclient.cs
- HtmlInputRadioButton.cs
- HtmlForm.cs
- SrgsDocumentParser.cs
- GeometryCollection.cs
- TextBoxBase.cs
- CodeNamespaceImport.cs
- DataControlFieldCell.cs
- WebPartVerb.cs
- ProxyFragment.cs
- EventPropertyMap.cs
- ClonableStack.cs
- KeyedCollection.cs
- XmlUrlEditor.cs
- IProvider.cs
- HtmlContainerControl.cs
- SingleBodyParameterMessageFormatter.cs
- CalendarTable.cs
- AnimationException.cs
- ExtendedProtectionPolicyTypeConverter.cs
- OleDbPermission.cs
- ParserStreamGeometryContext.cs
- StateFinalizationDesigner.cs
- SerializationHelper.cs
- cookiecontainer.cs
- ModelTreeEnumerator.cs
- Int32.cs
- InternalDispatchObject.cs
- Vector3DIndependentAnimationStorage.cs
- HttpCapabilitiesSectionHandler.cs
- DesignParameter.cs
- COM2IDispatchConverter.cs
- PropertyEntry.cs
- SamlNameIdentifierClaimResource.cs
- GeneralTransform3DGroup.cs
- WhitespaceRuleLookup.cs
- XmlImplementation.cs
- QilChoice.cs
- Predicate.cs
- XmlNodeList.cs
- GroupDescription.cs
- DataAdapter.cs
- XmlElementList.cs
- XXXOnTypeBuilderInstantiation.cs
- TraceSection.cs
- Comparer.cs
- ZipIOExtraFieldPaddingElement.cs
- DoubleAverageAggregationOperator.cs
- StateMachine.cs
- ObjectListComponentEditor.cs
- SqlCacheDependency.cs
- ConnectionManager.cs
- EventRouteFactory.cs
- EndpointDispatcher.cs
- TableSectionStyle.cs
- CompatibleIComparer.cs
- SoapObjectInfo.cs
- ToolStripItemEventArgs.cs
- PersistenceProviderFactory.cs
- MetadataItem_Static.cs
- BackStopAuthenticationModule.cs
- PeerContact.cs
- GridViewEditEventArgs.cs
- XmlDocumentType.cs
- FieldMetadata.cs
- Native.cs
- ReachDocumentReferenceSerializerAsync.cs
- HyperLinkField.cs
- DefaultObjectMappingItemCollection.cs
- JoinGraph.cs
- FloatUtil.cs
- ServiceEndpointElement.cs
- MailMessage.cs
- HashStream.cs
- ReflectionHelper.cs
- DynamicMethod.cs
- ClientSettingsSection.cs
- DocumentPageHost.cs
- InputScope.cs
- AttachedPropertyDescriptor.cs
- ReferentialConstraint.cs
- _Win32.cs
- CookieProtection.cs
- EntityViewGenerator.cs
- versioninfo.cs
- TextAnchor.cs
- MetafileHeaderWmf.cs
- SharedUtils.cs
- CompressedStack.cs
- ScriptResourceDefinition.cs
- Light.cs
- DefaultClaimSet.cs
- sqlser.cs
- SmtpNtlmAuthenticationModule.cs