Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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
- RemoteDebugger.cs
- TabletDeviceInfo.cs
- ShapeTypeface.cs
- VerticalAlignConverter.cs
- BaseResourcesBuildProvider.cs
- ReflectPropertyDescriptor.cs
- DefaultValidator.cs
- SqlCachedBuffer.cs
- TrustSection.cs
- BaseTemplateBuildProvider.cs
- DelegateSerializationHolder.cs
- ConfigXmlText.cs
- WsatAdminException.cs
- SchemaSetCompiler.cs
- StatusBarPanelClickEvent.cs
- Border.cs
- LifetimeServices.cs
- CalendarButtonAutomationPeer.cs
- ParamArrayAttribute.cs
- ProcessManager.cs
- _ListenerResponseStream.cs
- Vector.cs
- ADConnectionHelper.cs
- MultiBinding.cs
- DaylightTime.cs
- EventLog.cs
- EntityDesignerUtils.cs
- Pair.cs
- Compiler.cs
- ToolStripDropDownItem.cs
- wgx_commands.cs
- LocalIdKeyIdentifierClause.cs
- HttpCacheVaryByContentEncodings.cs
- ProviderUtil.cs
- WebZone.cs
- QueryOptionExpression.cs
- PropertyManager.cs
- AppDomainAttributes.cs
- ProtocolImporter.cs
- FormsAuthenticationModule.cs
- Root.cs
- ConfigurationSchemaErrors.cs
- Attributes.cs
- ClientSession.cs
- ModelItemExtensions.cs
- GACIdentityPermission.cs
- XXXInfos.cs
- ProfileParameter.cs
- NavigationProperty.cs
- PageWrapper.cs
- BamlLocalizableResource.cs
- Grant.cs
- BaseCAMarshaler.cs
- LambdaCompiler.Logical.cs
- documentsequencetextview.cs
- StagingAreaInputItem.cs
- ContentHostHelper.cs
- SchemaNamespaceManager.cs
- ExpandSegmentCollection.cs
- SpnegoTokenProvider.cs
- EventLogHandle.cs
- XmlnsPrefixAttribute.cs
- Publisher.cs
- PeerTransportSecurityElement.cs
- Rotation3D.cs
- SafeRightsManagementHandle.cs
- XmlValidatingReaderImpl.cs
- DynamicActivity.cs
- ParsedAttributeCollection.cs
- VirtualPathUtility.cs
- RemotingException.cs
- ToolBarOverflowPanel.cs
- Brushes.cs
- PropertyManager.cs
- XmlILIndex.cs
- ExecutedRoutedEventArgs.cs
- WebUtil.cs
- EdmFunction.cs
- GenericAuthenticationEventArgs.cs
- HeaderUtility.cs
- LinearGradientBrush.cs
- SoundPlayerAction.cs
- ProfilePropertyMetadata.cs
- UiaCoreApi.cs
- WindowsAuthenticationEventArgs.cs
- SerializerProvider.cs
- CacheDependency.cs
- GridSplitterAutomationPeer.cs
- EdmError.cs
- MethodToken.cs
- TablePatternIdentifiers.cs
- MenuItemStyle.cs
- EntityDataSourceState.cs
- EdmFunctions.cs
- CodeEntryPointMethod.cs
- BulletedList.cs
- XmlChoiceIdentifierAttribute.cs
- CodeBlockBuilder.cs
- CombinedGeometry.cs
- UpdatePanelControlTrigger.cs