Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Permissions / CompoundFileIOPermission.cs / 1305600 / 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalParameterlessPermissionBase { public CompoundFileIOPermission() : this(PermissionState.Unrestricted) { } public CompoundFileIOPermission(PermissionState state): base(state) { } 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
- XpsManager.cs
- CmsInterop.cs
- GenericTextProperties.cs
- URLString.cs
- StringFreezingAttribute.cs
- WeakEventManager.cs
- AstTree.cs
- PartialCachingControl.cs
- XPathExpr.cs
- LabelLiteral.cs
- TextBlockAutomationPeer.cs
- BitmapSizeOptions.cs
- ServiceModelConfigurationElementCollection.cs
- MenuItem.cs
- SqlWebEventProvider.cs
- ZipIOFileItemStream.cs
- BinaryUtilClasses.cs
- serverconfig.cs
- FactoryGenerator.cs
- AsyncOperationManager.cs
- DefaultPropertyAttribute.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- NameTable.cs
- BookmarkScopeManager.cs
- HtmlAnchor.cs
- LineGeometry.cs
- TableCellAutomationPeer.cs
- Annotation.cs
- EventRoute.cs
- StateDesigner.CommentLayoutGlyph.cs
- AssemblyContextControlItem.cs
- SignatureGenerator.cs
- XmlWrappingWriter.cs
- CopyOnWriteList.cs
- GraphicsContext.cs
- dataobject.cs
- DelegateSerializationHolder.cs
- EmptyCollection.cs
- BuildProvider.cs
- PreservationFileReader.cs
- Visitors.cs
- NativeMethods.cs
- Brush.cs
- AlignmentXValidation.cs
- XappLauncher.cs
- ColumnCollection.cs
- PeerReferralPolicy.cs
- TextContainerChangedEventArgs.cs
- TextEvent.cs
- documentsequencetextpointer.cs
- ColorConvertedBitmap.cs
- SerializerWriterEventHandlers.cs
- DefinitionUpdate.cs
- FixedSOMElement.cs
- ProfilePropertyNameValidator.cs
- mediaclock.cs
- SimpleWebHandlerParser.cs
- NameSpaceExtractor.cs
- ParseHttpDate.cs
- WmlPageAdapter.cs
- ConfigXmlElement.cs
- PartDesigner.cs
- TextView.cs
- Currency.cs
- RowsCopiedEventArgs.cs
- FreezableOperations.cs
- TypeTypeConverter.cs
- GridViewSelectEventArgs.cs
- EventLogInternal.cs
- CustomPopupPlacement.cs
- DecoderBestFitFallback.cs
- Pair.cs
- ConfigurationLocationCollection.cs
- GraphicsState.cs
- ValidatorCollection.cs
- WpfPayload.cs
- CodeTypeOfExpression.cs
- ClassDataContract.cs
- ScrollProperties.cs
- TempFiles.cs
- BoundColumn.cs
- HtmlInputImage.cs
- MessageEventSubscriptionService.cs
- DataListItemEventArgs.cs
- HttpCachePolicyWrapper.cs
- DebuggerAttributes.cs
- ThicknessKeyFrameCollection.cs
- ProxyWebPartConnectionCollection.cs
- ProfileServiceManager.cs
- ImmutableAssemblyCacheEntry.cs
- SpellerInterop.cs
- SemaphoreFullException.cs
- Int16Converter.cs
- EmptyStringExpandableObjectConverter.cs
- ShutDownListener.cs
- CompilationUnit.cs
- PropertyEmitterBase.cs
- MethodBuilderInstantiation.cs
- IncrementalReadDecoders.cs
- ThicknessAnimationBase.cs