Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RawMouseInputReport.cs
- ContentPathSegment.cs
- DocumentCollection.cs
- ImageDrawing.cs
- GradientStop.cs
- OpCellTreeNode.cs
- MemberRelationshipService.cs
- PropertyGeneratedEventArgs.cs
- SettingsContext.cs
- BaseServiceProvider.cs
- ProfileSection.cs
- TextEditorDragDrop.cs
- Context.cs
- PropertyFilter.cs
- DispatchWrapper.cs
- StringPropertyBuilder.cs
- DataControlLinkButton.cs
- SiblingIterators.cs
- ApplicationFileParser.cs
- DataGridSortCommandEventArgs.cs
- Transform.cs
- RealizationDrawingContextWalker.cs
- BulletChrome.cs
- VisemeEventArgs.cs
- AllowedAudienceUriElement.cs
- EditingCommands.cs
- HtmlInputPassword.cs
- ScaleTransform3D.cs
- SqlResolver.cs
- IndentedWriter.cs
- AudioException.cs
- SerializationTrace.cs
- DocumentViewerHelper.cs
- FunctionNode.cs
- ImageCodecInfoPrivate.cs
- ControlIdConverter.cs
- XPathExpr.cs
- MimePart.cs
- SqlCharStream.cs
- HtmlImage.cs
- BitmapScalingModeValidation.cs
- ListBoxItemAutomationPeer.cs
- DataSetFieldSchema.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- StringOutput.cs
- ContentTextAutomationPeer.cs
- Point3DCollection.cs
- EditorZone.cs
- DataGridViewColumnConverter.cs
- TemplateBindingExpressionConverter.cs
- PropertyEntry.cs
- PipelineModuleStepContainer.cs
- ProxyElement.cs
- EditorAttribute.cs
- ComponentChangingEvent.cs
- CaseInsensitiveHashCodeProvider.cs
- ExtendedPropertyDescriptor.cs
- FrameworkElement.cs
- ProfileServiceManager.cs
- CompilationUtil.cs
- HttpAsyncResult.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- VerticalAlignConverter.cs
- SpoolingTaskBase.cs
- DoubleKeyFrameCollection.cs
- EntityDataSourceConfigureObjectContext.cs
- ApplicationInterop.cs
- XmlSerializationWriter.cs
- Range.cs
- InstanceDataCollection.cs
- ExpressionNode.cs
- PointLight.cs
- _ConnectOverlappedAsyncResult.cs
- ApplicationSettingsBase.cs
- ScriptingAuthenticationServiceSection.cs
- HashCodeCombiner.cs
- CursorConverter.cs
- WpfKnownType.cs
- DefaultValueAttribute.cs
- CachedTypeface.cs
- ServiceHttpHandlerFactory.cs
- CollectionAdapters.cs
- PropertyEmitter.cs
- LiteralControl.cs
- DependencyProperty.cs
- storepermission.cs
- MultiSelectRootGridEntry.cs
- ProcessManager.cs
- EventListenerClientSide.cs
- HtmlInputFile.cs
- PriorityQueue.cs
- Vector3DConverter.cs
- DrawingVisualDrawingContext.cs
- ToolStripItemImageRenderEventArgs.cs
- PropertySegmentSerializer.cs
- IndentedWriter.cs
- VirtualizingPanel.cs
- ClientScriptManager.cs
- OpenTypeLayout.cs
- MetadataArtifactLoaderComposite.cs