Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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 : younggk - 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. //---------------------------------------------------------------------------- // //// 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 : younggk - 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
- InvalidOleVariantTypeException.cs
- _TimerThread.cs
- Range.cs
- ExitEventArgs.cs
- JsonReaderWriterFactory.cs
- Ray3DHitTestResult.cs
- ProviderUtil.cs
- SymbolTable.cs
- Pair.cs
- TypedReference.cs
- FileAccessException.cs
- SchemaNotation.cs
- Binding.cs
- ObjectPersistData.cs
- SoapReflectionImporter.cs
- FileLevelControlBuilderAttribute.cs
- BoundPropertyEntry.cs
- XmlSignificantWhitespace.cs
- StylusEditingBehavior.cs
- PersonalizablePropertyEntry.cs
- BaseProcessor.cs
- TargetInvocationException.cs
- OracleRowUpdatingEventArgs.cs
- DataGridRowAutomationPeer.cs
- HttpRequestCacheValidator.cs
- BitmapEffectGroup.cs
- GridViewCommandEventArgs.cs
- HttpModuleActionCollection.cs
- LocationSectionRecord.cs
- ResolveCriteriaCD1.cs
- ExpressionBuilderCollection.cs
- VisualBasic.cs
- XmlAnyElementAttributes.cs
- NumberFormatInfo.cs
- HMACSHA384.cs
- RemoteX509AsymmetricSecurityKey.cs
- MimeTextImporter.cs
- ClientSponsor.cs
- HtmlUtf8RawTextWriter.cs
- WebEvents.cs
- DrawingContextWalker.cs
- OdbcErrorCollection.cs
- CodeNamespaceCollection.cs
- TemplateNodeContextMenu.cs
- AutoResizedEvent.cs
- DataPagerFieldCommandEventArgs.cs
- LineGeometry.cs
- CommandSet.cs
- Point.cs
- InplaceBitmapMetadataWriter.cs
- XmlCodeExporter.cs
- DataMisalignedException.cs
- RootBrowserWindow.cs
- ApplicationDirectory.cs
- ConnectionInterfaceCollection.cs
- ContentPlaceHolder.cs
- BinHexEncoder.cs
- TimersDescriptionAttribute.cs
- _BaseOverlappedAsyncResult.cs
- AsyncResult.cs
- Span.cs
- AxHost.cs
- TablePatternIdentifiers.cs
- DataProviderNameConverter.cs
- CodeCatchClause.cs
- FileDialog_Vista_Interop.cs
- ManipulationInertiaStartingEventArgs.cs
- Ppl.cs
- NativeMethods.cs
- ListManagerBindingsCollection.cs
- CodeMethodInvokeExpression.cs
- Cell.cs
- ContentPlaceHolder.cs
- CreationContext.cs
- TableChangeProcessor.cs
- ContractDescription.cs
- ValidatedControlConverter.cs
- CursorConverter.cs
- DataObjectCopyingEventArgs.cs
- SqlDataSourceCache.cs
- WebPartMovingEventArgs.cs
- ControlCommandSet.cs
- DomainUpDown.cs
- Rule.cs
- BCLDebug.cs
- EntityContainerEntitySetDefiningQuery.cs
- Size3D.cs
- HttpHostedTransportConfiguration.cs
- CookielessHelper.cs
- SynchronizedKeyedCollection.cs
- EntityParameter.cs
- _LocalDataStoreMgr.cs
- SamlSecurityToken.cs
- FormViewPageEventArgs.cs
- ValidatorCompatibilityHelper.cs
- TemplatingOptionsDialog.cs
- OperationContextScope.cs
- IImplicitResourceProvider.cs
- CounterSampleCalculator.cs
- FlowDocumentPaginator.cs