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
- OracleLob.cs
- BufferModeSettings.cs
- ExclusiveCanonicalizationTransform.cs
- OutOfMemoryException.cs
- ColumnWidthChangingEvent.cs
- TrackingParameters.cs
- UiaCoreTypesApi.cs
- Container.cs
- FixedSOMLineCollection.cs
- TableParaClient.cs
- OutputScope.cs
- TimeIntervalCollection.cs
- VoiceObjectToken.cs
- ServiceReference.cs
- FunctionCommandText.cs
- MetadataUtilsSmi.cs
- RowSpanVector.cs
- SafeLibraryHandle.cs
- ControlPaint.cs
- RelatedEnd.cs
- ConfigXmlCDataSection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- _NegoState.cs
- PointLight.cs
- ProtocolsConfiguration.cs
- Setter.cs
- DiagnosticTrace.cs
- Point3DIndependentAnimationStorage.cs
- AnimationClock.cs
- _NtlmClient.cs
- HttpFileCollection.cs
- DifferencingCollection.cs
- Triangle.cs
- FixedLineResult.cs
- MemberCollection.cs
- DataGridViewLinkCell.cs
- HttpCacheVary.cs
- EmptyReadOnlyDictionaryInternal.cs
- Int32.cs
- HttpGetProtocolReflector.cs
- WebBrowserBase.cs
- Compress.cs
- RangeValuePatternIdentifiers.cs
- TimeZoneNotFoundException.cs
- Socket.cs
- SchemaMapping.cs
- PreDigestedSignedInfo.cs
- TimeZoneNotFoundException.cs
- SqlProviderServices.cs
- ExternalException.cs
- TreeSet.cs
- DataGridViewRowsRemovedEventArgs.cs
- WindowsPrincipal.cs
- SystemIPGlobalStatistics.cs
- XmlFormatExtensionPointAttribute.cs
- AssociationTypeEmitter.cs
- WebBaseEventKeyComparer.cs
- SqlNamer.cs
- SafeThreadHandle.cs
- InfoCardKeyedHashAlgorithm.cs
- RowToParametersTransformer.cs
- FunctionDetailsReader.cs
- EditorZone.cs
- OutOfProcStateClientManager.cs
- ScrollBar.cs
- BaseTemplateBuildProvider.cs
- SystemResources.cs
- RegexStringValidatorAttribute.cs
- HttpRuntime.cs
- ResXResourceWriter.cs
- Environment.cs
- XmlText.cs
- NavigationService.cs
- AlignmentYValidation.cs
- PeerToPeerException.cs
- ManualResetEventSlim.cs
- ImageList.cs
- SafeRightsManagementPubHandle.cs
- ReaderWriterLock.cs
- X509CertificateInitiatorClientCredential.cs
- ContainsRowNumberChecker.cs
- DateTimeFormatInfo.cs
- BitmapDecoder.cs
- AnimationClockResource.cs
- XmlNullResolver.cs
- Publisher.cs
- TargetInvocationException.cs
- TextServicesPropertyRanges.cs
- InvalidateEvent.cs
- HostedNamedPipeTransportManager.cs
- RepeaterItemEventArgs.cs
- SamlAction.cs
- FixedPage.cs
- TableLayoutStyle.cs
- UnmanagedHandle.cs
- Size.cs
- PathFigureCollection.cs
- AudioFileOut.cs
- EventMappingSettings.cs
- RightNameExpirationInfoPair.cs