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
- RequestCacheManager.cs
- CounterSample.cs
- FontSizeConverter.cs
- COM2ExtendedTypeConverter.cs
- RealProxy.cs
- PackagingUtilities.cs
- SqlConnectionPoolProviderInfo.cs
- SqlFileStream.cs
- MethodAccessException.cs
- HtmlForm.cs
- CryptoConfig.cs
- PointCollectionConverter.cs
- ProtocolsConfigurationEntry.cs
- DragAssistanceManager.cs
- XsltQilFactory.cs
- StructuralComparisons.cs
- ModuleBuilder.cs
- FunctionCommandText.cs
- ToolStripButton.cs
- ObjectParameter.cs
- XmlSerializationReader.cs
- LineServicesCallbacks.cs
- versioninfo.cs
- CompiledQuery.cs
- EventRouteFactory.cs
- WebPartManager.cs
- StaticContext.cs
- FloaterParagraph.cs
- ObservableDictionary.cs
- FileDialog_Vista_Interop.cs
- recordstate.cs
- HandledEventArgs.cs
- CaseCqlBlock.cs
- OracleColumn.cs
- ServicesExceptionNotHandledEventArgs.cs
- ContextMenuStripGroup.cs
- DecoratedNameAttribute.cs
- Deflater.cs
- ConnectionPointCookie.cs
- OdbcConnectionHandle.cs
- DataView.cs
- HttpCacheVary.cs
- ByteKeyFrameCollection.cs
- _NetworkingPerfCounters.cs
- TraceContextRecord.cs
- InternalControlCollection.cs
- EmptyEnumerable.cs
- TextEffect.cs
- GraphicsPath.cs
- TitleStyle.cs
- SafeFileHandle.cs
- SafeLocalMemHandle.cs
- PlatformNotSupportedException.cs
- ColumnClickEvent.cs
- NamespaceInfo.cs
- HttpCookieCollection.cs
- EventLogEntryCollection.cs
- CodeAttributeArgumentCollection.cs
- MetadataUtilsSmi.cs
- SafeNativeMethods.cs
- NativeMethods.cs
- RemoteWebConfigurationHost.cs
- SafeLocalAllocation.cs
- DataGridPageChangedEventArgs.cs
- DateTimeHelper.cs
- MimeBasePart.cs
- GridItemCollection.cs
- XmlSerializerVersionAttribute.cs
- TemplateKeyConverter.cs
- SelectedDatesCollection.cs
- HttpPostProtocolImporter.cs
- NamespaceImport.cs
- MatchSingleFxEngineOpcode.cs
- RegexGroupCollection.cs
- ProcessModelInfo.cs
- Debug.cs
- Grid.cs
- Atom10FormatterFactory.cs
- MediaSystem.cs
- PackWebResponse.cs
- RelatedView.cs
- QilPatternFactory.cs
- ChannelSinkStacks.cs
- ProtocolViolationException.cs
- ObservableCollection.cs
- UmAlQuraCalendar.cs
- NamedPipeConnectionPoolSettings.cs
- CharacterBufferReference.cs
- RichTextBoxConstants.cs
- BorderSidesEditor.cs
- PersonalizableTypeEntry.cs
- webbrowsersite.cs
- VirtualizedItemProviderWrapper.cs
- WindowsGraphics2.cs
- ParentQuery.cs
- TraceFilter.cs
- SingleResultAttribute.cs
- MouseGestureValueSerializer.cs
- DependencyPropertyConverter.cs
- EmbeddedMailObjectsCollection.cs