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
- BatchStream.cs
- Debugger.cs
- BitmapFrame.cs
- TCEAdapterGenerator.cs
- Utils.cs
- SpellCheck.cs
- SystemIPGlobalProperties.cs
- XMLSyntaxException.cs
- latinshape.cs
- SymDocumentType.cs
- _NegotiateClient.cs
- DataControlFieldCollection.cs
- DispatcherEventArgs.cs
- ParseHttpDate.cs
- Subtree.cs
- SqlTriggerAttribute.cs
- RunClient.cs
- MiniCustomAttributeInfo.cs
- BuildResult.cs
- ManagementPath.cs
- DeviceOverridableAttribute.cs
- DynamicObjectAccessor.cs
- OleDbError.cs
- LazyLoadBehavior.cs
- InstancePersistenceCommandException.cs
- TypeSystem.cs
- ExpressionTextBox.xaml.cs
- FileLoadException.cs
- DataColumnChangeEvent.cs
- PreviewKeyDownEventArgs.cs
- TranslateTransform3D.cs
- DivideByZeroException.cs
- TableHeaderCell.cs
- DataControlPagerLinkButton.cs
- StreamWithDictionary.cs
- DiscoveryMessageSequence11.cs
- SystemWebCachingSectionGroup.cs
- PeerTransportListenAddressConverter.cs
- CollectionChangeEventArgs.cs
- StateChangeEvent.cs
- OdbcConnectionStringbuilder.cs
- StreamGeometry.cs
- TextTreeInsertUndoUnit.cs
- BinaryCommonClasses.cs
- BooleanFacetDescriptionElement.cs
- DES.cs
- Quad.cs
- RoutedEventArgs.cs
- Pens.cs
- XmlTextReaderImplHelpers.cs
- XPathDescendantIterator.cs
- SplitterCancelEvent.cs
- ProxyWebPartConnectionCollection.cs
- CustomTrackingQuery.cs
- LinkTarget.cs
- Component.cs
- Camera.cs
- VisualStateManager.cs
- InternalEnumValidator.cs
- TailCallAnalyzer.cs
- DisplayNameAttribute.cs
- CategoryGridEntry.cs
- EmptyQuery.cs
- SetterBaseCollection.cs
- DataGridViewCellEventArgs.cs
- ShimAsPublicXamlType.cs
- SmiSettersStream.cs
- StylusPointPropertyInfo.cs
- DispatcherOperation.cs
- ConfigUtil.cs
- CompilerErrorCollection.cs
- StrokeSerializer.cs
- Vector3DValueSerializer.cs
- SqlClientFactory.cs
- CombinedGeometry.cs
- FontCollection.cs
- TypeElement.cs
- StringStorage.cs
- LinkedList.cs
- LightweightCodeGenerator.cs
- WorkerRequest.cs
- ForceCopyBuildProvider.cs
- Model3DGroup.cs
- DependencyPropertyDescriptor.cs
- OrderedDictionaryStateHelper.cs
- HandlerBase.cs
- SiteMapDesignerDataSourceView.cs
- RoutedEvent.cs
- Compiler.cs
- TypeDelegator.cs
- COM2AboutBoxPropertyDescriptor.cs
- KeyManager.cs
- StateRuntime.cs
- WebBrowserPermission.cs
- ConfigurationManager.cs
- DesignerWidgets.cs
- XamlStyleSerializer.cs
- PersonalizablePropertyEntry.cs
- KeyValuePair.cs
- CatalogZone.cs