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
- GridViewRowEventArgs.cs
- WasEndpointConfigContainer.cs
- DocumentPageView.cs
- NativeMethods.cs
- _ListenerResponseStream.cs
- FontDifferentiator.cs
- QuerySafeNavigator.cs
- ItemCollection.cs
- MonikerHelper.cs
- Rotation3D.cs
- UseLicense.cs
- Stroke2.cs
- CellTreeNode.cs
- TableLayout.cs
- BamlResourceDeserializer.cs
- ZipIOBlockManager.cs
- AssemblyNameEqualityComparer.cs
- SimpleWebHandlerParser.cs
- InsufficientMemoryException.cs
- GiveFeedbackEventArgs.cs
- Registry.cs
- ApplicationContext.cs
- NetworkStream.cs
- XmlSchemaAttributeGroup.cs
- Underline.cs
- RadioButtonPopupAdapter.cs
- RSAPKCS1SignatureFormatter.cs
- RelationshipEndCollection.cs
- FixUpCollection.cs
- ApplicationTrust.cs
- ErrorEventArgs.cs
- XmlSchemaException.cs
- SoapReflectionImporter.cs
- PropertyTabChangedEvent.cs
- indexingfiltermarshaler.cs
- ServiceDescriptions.cs
- MappableObjectManager.cs
- WmlPageAdapter.cs
- PiiTraceSource.cs
- BooleanExpr.cs
- Effect.cs
- ObjectView.cs
- ClientType.cs
- DataControlFieldCollection.cs
- MultiSelector.cs
- ControlEvent.cs
- OracleConnectionFactory.cs
- Oid.cs
- MenuItemStyle.cs
- CodeMemberProperty.cs
- ListViewItemSelectionChangedEvent.cs
- LinearKeyFrames.cs
- DifferencingCollection.cs
- Thread.cs
- DetailsViewDeleteEventArgs.cs
- DoWhileDesigner.xaml.cs
- PreviewKeyDownEventArgs.cs
- XmlException.cs
- BindingOperations.cs
- InternalControlCollection.cs
- OdbcInfoMessageEvent.cs
- WebPartConnectionsConnectVerb.cs
- SafeNativeMethods.cs
- ClientConfigurationSystem.cs
- Timer.cs
- AnnotationResourceChangedEventArgs.cs
- SecurityTokenReferenceStyle.cs
- EntityContainerEntitySet.cs
- ToolstripProfessionalRenderer.cs
- TextEditorCopyPaste.cs
- CacheOutputQuery.cs
- EntityViewGenerationConstants.cs
- TimeoutValidationAttribute.cs
- DiagnosticTrace.cs
- DataBoundControl.cs
- HttpWebRequestElement.cs
- JulianCalendar.cs
- Subtree.cs
- mda.cs
- HttpStreamFormatter.cs
- RelatedView.cs
- TextStore.cs
- ButtonColumn.cs
- Graphics.cs
- RoleService.cs
- ProfileWorkflowElement.cs
- UIElementCollection.cs
- CompModSwitches.cs
- WinInetCache.cs
- MembershipAdapter.cs
- AutomationIdentifierGuids.cs
- ReferenceEqualityComparer.cs
- QilNode.cs
- TypedAsyncResult.cs
- linebase.cs
- SchemaImporterExtensionElement.cs
- LocalizationParserHooks.cs
- XmlEncoding.cs
- DocumentReferenceCollection.cs
- Helpers.cs