Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ObjectViewListener.cs
- DataFieldConverter.cs
- SimpleHandlerFactory.cs
- TableLayoutStyleCollection.cs
- util.cs
- ProfileSettings.cs
- PolicyVersionConverter.cs
- PageThemeParser.cs
- EventLogEntryCollection.cs
- DBConnectionString.cs
- __ComObject.cs
- SubpageParaClient.cs
- XmlNotation.cs
- ListenerElementsCollection.cs
- CatchDesigner.xaml.cs
- PageHandlerFactory.cs
- RadialGradientBrush.cs
- COM2TypeInfoProcessor.cs
- FontDifferentiator.cs
- GeneralTransform2DTo3DTo2D.cs
- MasterPage.cs
- TextStore.cs
- XmlLinkedNode.cs
- WebEventTraceProvider.cs
- StrongName.cs
- EntityViewGenerationAttribute.cs
- StackBuilderSink.cs
- RequestQueryProcessor.cs
- BitmapEffect.cs
- Thickness.cs
- ProcessStartInfo.cs
- InputScopeAttribute.cs
- MenuDesigner.cs
- WizardPanelChangingEventArgs.cs
- TextServicesLoader.cs
- RoutedUICommand.cs
- DecimalFormatter.cs
- WebPartDescriptionCollection.cs
- ConstrainedDataObject.cs
- WebPartDeleteVerb.cs
- SHA256CryptoServiceProvider.cs
- XmlSerializer.cs
- ProfessionalColors.cs
- GeneralTransform3DGroup.cs
- EntityTransaction.cs
- SqlProviderServices.cs
- ExtendedPropertyDescriptor.cs
- PeerApplicationLaunchInfo.cs
- DelegateBodyWriter.cs
- CommandLibraryHelper.cs
- ServiceEndpointElementCollection.cs
- PersonalizationAdministration.cs
- TypeSystemHelpers.cs
- CodeParameterDeclarationExpressionCollection.cs
- AssociationTypeEmitter.cs
- GlobalDataBindingHandler.cs
- CloudCollection.cs
- WebServiceHost.cs
- WindowsListViewGroupHelper.cs
- DurableInstanceManager.cs
- XmlHierarchicalEnumerable.cs
- CompilerScopeManager.cs
- ExpressionDumper.cs
- DataGridRowEventArgs.cs
- OrderingExpression.cs
- RuntimeEnvironment.cs
- grammarelement.cs
- CaseInsensitiveComparer.cs
- DispatcherEventArgs.cs
- CmsUtils.cs
- TypedTableBase.cs
- WmpBitmapDecoder.cs
- DashStyle.cs
- Wildcard.cs
- Imaging.cs
- EventData.cs
- PluggableProtocol.cs
- TransformerInfoCollection.cs
- ZipFileInfo.cs
- QilReplaceVisitor.cs
- HostVisual.cs
- TableLayoutSettingsTypeConverter.cs
- ValidationErrorCollection.cs
- DataErrorValidationRule.cs
- BmpBitmapEncoder.cs
- Separator.cs
- PageClientProxyGenerator.cs
- DispatcherExceptionEventArgs.cs
- GroupBoxDesigner.cs
- EntityDataSourceQueryBuilder.cs
- CharKeyFrameCollection.cs
- ObjectKeyFrameCollection.cs
- NameTable.cs
- Attribute.cs
- DataGridItemAttachedStorage.cs
- InputLanguageManager.cs
- System.Data.OracleClient_BID.cs
- DBCSCodePageEncoding.cs
- SimpleBitVector32.cs
- ClrProviderManifest.cs