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
- Span.cs
- Animatable.cs
- AsyncStreamReader.cs
- HttpCookiesSection.cs
- AliasedSlot.cs
- DiagnosticsConfigurationHandler.cs
- Config.cs
- AppModelKnownContentFactory.cs
- WebBrowserEvent.cs
- CodeCompileUnit.cs
- CodeTypeOfExpression.cs
- ShaderEffect.cs
- TemplateInstanceAttribute.cs
- HttpListenerTimeoutManager.cs
- ProfileGroupSettingsCollection.cs
- ValueType.cs
- CommentEmitter.cs
- ProcessInputEventArgs.cs
- TcpChannelListener.cs
- DataServiceEntityAttribute.cs
- SafeRegistryKey.cs
- CheckBoxFlatAdapter.cs
- GeneralTransformGroup.cs
- NavigationPropertyEmitter.cs
- StaticDataManager.cs
- HttpConfigurationSystem.cs
- URLString.cs
- StopStoryboard.cs
- DbConnectionHelper.cs
- IdnMapping.cs
- TypeHelpers.cs
- PeerInvitationResponse.cs
- ReadOnlyDataSource.cs
- XmlCharacterData.cs
- FrameworkPropertyMetadata.cs
- ReadingWritingEntityEventArgs.cs
- OdbcConnectionHandle.cs
- AdornerDecorator.cs
- NotFiniteNumberException.cs
- SystemException.cs
- GeometryCombineModeValidation.cs
- SHA512Cng.cs
- EntityViewGenerator.cs
- _emptywebproxy.cs
- NotifyInputEventArgs.cs
- DurableOperationContext.cs
- GridErrorDlg.cs
- TdsParserStaticMethods.cs
- RefreshEventArgs.cs
- BamlResourceSerializer.cs
- OverlappedAsyncResult.cs
- DelegatedStream.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ConstNode.cs
- ItemList.cs
- EpmContentDeSerializer.cs
- COM2PictureConverter.cs
- XmlAttributeCollection.cs
- SerialStream.cs
- TextLineBreak.cs
- CachedFontFamily.cs
- XsltLibrary.cs
- AssemblyUtil.cs
- MonthCalendar.cs
- MenuRendererStandards.cs
- ColumnHeader.cs
- HyperLinkStyle.cs
- wgx_commands.cs
- DataGridItemAutomationPeer.cs
- AssociationTypeEmitter.cs
- UnmanagedBitmapWrapper.cs
- ExpressionVisitor.cs
- MemoryMappedView.cs
- ModifierKeysValueSerializer.cs
- TypeSchema.cs
- IPGlobalProperties.cs
- UrlPath.cs
- WebConfigurationFileMap.cs
- XPathEmptyIterator.cs
- LicFileLicenseProvider.cs
- RsaElement.cs
- DragDeltaEventArgs.cs
- SizeConverter.cs
- DoubleAnimationBase.cs
- HttpWebRequest.cs
- BaseTemplateBuildProvider.cs
- NetworkAddressChange.cs
- objectresult_tresulttype.cs
- Helper.cs
- unitconverter.cs
- SqlUnionizer.cs
- VisualStyleRenderer.cs
- UnsafeNativeMethodsTablet.cs
- WsatTransactionInfo.cs
- WindowsFormsLinkLabel.cs
- Transform3DCollection.cs
- TraceContext.cs
- Ray3DHitTestResult.cs
- DataRowComparer.cs
- XmlMtomReader.cs