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
- QilGeneratorEnv.cs
- GC.cs
- As.cs
- Imaging.cs
- CollectionViewSource.cs
- CultureTable.cs
- MenuItem.cs
- ReflectionHelper.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TakeQueryOptionExpression.cs
- CacheSection.cs
- TypeExtensionConverter.cs
- DecimalStorage.cs
- MsmqIntegrationInputChannel.cs
- DbConnectionInternal.cs
- EdmToObjectNamespaceMap.cs
- StrokeCollectionConverter.cs
- ColorConvertedBitmap.cs
- MultiBindingExpression.cs
- Int32Animation.cs
- BaseCodeDomTreeGenerator.cs
- UrlPath.cs
- XmlParser.cs
- PolicyUnit.cs
- ReadOnlyAttribute.cs
- EncryptedData.cs
- MonthChangedEventArgs.cs
- ConnectionPointCookie.cs
- ParamArrayAttribute.cs
- DescendantQuery.cs
- UIPermission.cs
- ExpressionBindings.cs
- EventMappingSettings.cs
- AlphaSortedEnumConverter.cs
- AttributeInfo.cs
- XmlNavigatorFilter.cs
- TraceRecords.cs
- CodeExporter.cs
- CompilerGeneratedAttribute.cs
- SecurityPolicySection.cs
- Deserializer.cs
- SessionStateModule.cs
- ProvideValueServiceProvider.cs
- SmtpAuthenticationManager.cs
- SqlServer2KCompatibilityAnnotation.cs
- RightsManagementEncryptedStream.cs
- Signature.cs
- CodeConditionStatement.cs
- HealthMonitoringSection.cs
- SourceItem.cs
- RootBrowserWindowAutomationPeer.cs
- TextElementCollectionHelper.cs
- TemplateApplicationHelper.cs
- RegisteredArrayDeclaration.cs
- SoapSchemaImporter.cs
- TextSchema.cs
- SurrogateSelector.cs
- TreeWalkHelper.cs
- DictionarySectionHandler.cs
- LocatorPartList.cs
- DefaultMemberAttribute.cs
- TableLayoutSettings.cs
- odbcmetadatafactory.cs
- DataBindingList.cs
- Select.cs
- IRCollection.cs
- ToolboxService.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- CounterCreationDataCollection.cs
- ProjectedWrapper.cs
- BulletedList.cs
- DocumentAutomationPeer.cs
- HtmlToClrEventProxy.cs
- HostingEnvironmentException.cs
- TypeAccessException.cs
- DayRenderEvent.cs
- VirtualDirectoryMapping.cs
- Camera.cs
- DocumentAutomationPeer.cs
- Comparer.cs
- EventProviderWriter.cs
- CellIdBoolean.cs
- KnownTypesHelper.cs
- CngKeyCreationParameters.cs
- GridViewColumnHeaderAutomationPeer.cs
- ICspAsymmetricAlgorithm.cs
- HttpBindingExtension.cs
- LicenseProviderAttribute.cs
- ScriptResourceMapping.cs
- ValidationErrorInfo.cs
- PrintDialog.cs
- SqlServer2KCompatibilityCheck.cs
- DesignTimeParseData.cs
- AspCompat.cs
- NameSpaceExtractor.cs
- ToolStripHighContrastRenderer.cs
- RectAnimationBase.cs
- DataSourceControl.cs
- FileCodeGroup.cs
- StringDictionary.cs