Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- SiteMapNode.cs
- MarkupCompiler.cs
- EasingKeyFrames.cs
- HttpWriter.cs
- DbTransaction.cs
- METAHEADER.cs
- MergeExecutor.cs
- DependencyPropertyChangedEventArgs.cs
- IISUnsafeMethods.cs
- ClientUrlResolverWrapper.cs
- WebPartDisplayModeEventArgs.cs
- Native.cs
- TreeWalkHelper.cs
- BindingCompleteEventArgs.cs
- HttpSocketManager.cs
- GridViewAutomationPeer.cs
- InkPresenterAutomationPeer.cs
- SymLanguageVendor.cs
- ContentValidator.cs
- ZipIOExtraFieldElement.cs
- MultilineStringConverter.cs
- HandlerFactoryWrapper.cs
- XmlComment.cs
- Matrix3DStack.cs
- URLIdentityPermission.cs
- oledbmetadatacollectionnames.cs
- XamlReaderHelper.cs
- EndpointDiscoveryMetadataCD1.cs
- TypefaceMap.cs
- Metafile.cs
- HtmlSelect.cs
- ContextInformation.cs
- CharacterString.cs
- AccessViolationException.cs
- PrinterUnitConvert.cs
- PixelShader.cs
- XmlNotation.cs
- XsdBuildProvider.cs
- EventArgs.cs
- XmlImplementation.cs
- GeometryValueSerializer.cs
- COM2ExtendedBrowsingHandler.cs
- CalendarKeyboardHelper.cs
- ParserOptions.cs
- ListSortDescription.cs
- CodeConditionStatement.cs
- XomlCompilerError.cs
- BindToObject.cs
- Enlistment.cs
- RenameRuleObjectDialog.cs
- InstancePersistenceCommand.cs
- HttpDictionary.cs
- MenuItemBindingCollection.cs
- ArgIterator.cs
- RegexStringValidator.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- PolicyUnit.cs
- EmptyQuery.cs
- InstanceNormalEvent.cs
- MenuItemCollection.cs
- SqlConnectionString.cs
- BasicBrowserDialog.cs
- RoutedEvent.cs
- EventMappingSettingsCollection.cs
- MediaCommands.cs
- SmiRequestExecutor.cs
- XamlFigureLengthSerializer.cs
- SchemaTableColumn.cs
- AutomationPropertyInfo.cs
- ConfigurationStrings.cs
- DataGridClipboardHelper.cs
- EntityAdapter.cs
- BroadcastEventHelper.cs
- StyleXamlParser.cs
- RepeatBehavior.cs
- MetadataPropertyvalue.cs
- WebPartVerbsEventArgs.cs
- XmlSerializableReader.cs
- FlowNode.cs
- String.cs
- TypeToStringValueConverter.cs
- ColumnMap.cs
- KeyConstraint.cs
- FolderNameEditor.cs
- NoPersistScope.cs
- RequestResizeEvent.cs
- FormatStringEditor.cs
- EmbeddedMailObject.cs
- XmlArrayAttribute.cs
- DtdParser.cs
- SelectionWordBreaker.cs
- Constants.cs
- AppLevelCompilationSectionCache.cs
- PropertyItem.cs
- XmlBinaryReaderSession.cs
- RegexBoyerMoore.cs
- DataBinding.cs
- HierarchicalDataSourceControl.cs
- CharEntityEncoderFallback.cs
- DetailsViewCommandEventArgs.cs