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
- LongValidatorAttribute.cs
- PingOptions.cs
- KeyValueConfigurationCollection.cs
- Visual3D.cs
- DataGridViewUtilities.cs
- SQLMoneyStorage.cs
- DateTimeConverter2.cs
- VisualProxy.cs
- ResolveRequestResponseAsyncResult.cs
- COMException.cs
- XmlStringTable.cs
- StylusCaptureWithinProperty.cs
- Scheduling.cs
- IFormattable.cs
- WhitespaceSignificantCollectionAttribute.cs
- SoapInteropTypes.cs
- DocumentSequence.cs
- DataRowChangeEvent.cs
- TypeLoadException.cs
- LocalizabilityAttribute.cs
- HttpTransportManager.cs
- XmlSignatureProperties.cs
- PolyQuadraticBezierSegment.cs
- XPathDocument.cs
- MetadataSerializer.cs
- columnmapfactory.cs
- RolePrincipal.cs
- XmlDataCollection.cs
- DrawingState.cs
- BufferedConnection.cs
- XPathAncestorQuery.cs
- processwaithandle.cs
- SelectionEditor.cs
- NamedObject.cs
- ObjectAnimationBase.cs
- DataGridTextBox.cs
- TextRenderer.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SemanticResolver.cs
- DeclarationUpdate.cs
- FtpRequestCacheValidator.cs
- sitestring.cs
- HandledMouseEvent.cs
- HtmlElement.cs
- LocalizableResourceBuilder.cs
- IgnorePropertiesAttribute.cs
- BroadcastEventHelper.cs
- DiffuseMaterial.cs
- ColumnHeaderConverter.cs
- SelectionUIHandler.cs
- NotFiniteNumberException.cs
- PolygonHotSpot.cs
- TemplateControlBuildProvider.cs
- MultiByteCodec.cs
- CodeDelegateCreateExpression.cs
- Debugger.cs
- BindingMemberInfo.cs
- TripleDESCryptoServiceProvider.cs
- DataGridHeaderBorder.cs
- FixedDocument.cs
- RegexGroupCollection.cs
- KernelTypeValidation.cs
- ConfigurationPermission.cs
- WindowsScrollBarBits.cs
- BrushMappingModeValidation.cs
- SessionEndingCancelEventArgs.cs
- GeneralTransform.cs
- LinkClickEvent.cs
- SectionRecord.cs
- _OSSOCK.cs
- IFlowDocumentViewer.cs
- PresentationAppDomainManager.cs
- compensatingcollection.cs
- HtmlControlPersistable.cs
- Tokenizer.cs
- ChtmlTextWriter.cs
- SystemColors.cs
- UserControlCodeDomTreeGenerator.cs
- BackgroundWorker.cs
- DataObjectFieldAttribute.cs
- URL.cs
- AssemblyInfo.cs
- NativeMethods.cs
- XsdBuildProvider.cs
- BooleanConverter.cs
- SafeSecurityHelper.cs
- XhtmlBasicImageAdapter.cs
- DataContractSerializerElement.cs
- AssemblyAttributesGoHere.cs
- StringInfo.cs
- SyndicationElementExtension.cs
- KnownBoxes.cs
- FontResourceCache.cs
- DataGridViewAutoSizeModeEventArgs.cs
- MachineKeySection.cs
- GeneralTransformCollection.cs
- HandlerWithFactory.cs
- SerializerWriterEventHandlers.cs
- XMLSyntaxException.cs
- MatrixCamera.cs