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
- UInt16.cs
- ReadOnlyDictionary.cs
- AuthenticationServiceManager.cs
- GenericUriParser.cs
- TextFormatterContext.cs
- NavigateEvent.cs
- LayoutTable.cs
- ServiceModelReg.cs
- SrgsItemList.cs
- X509ChainPolicy.cs
- NameValuePermission.cs
- DependencyPropertyValueSerializer.cs
- DeploymentExceptionMapper.cs
- RuleSettings.cs
- KnownTypesHelper.cs
- SiteMapDataSource.cs
- sqlcontext.cs
- InvariantComparer.cs
- SubstitutionList.cs
- CurrencyManager.cs
- IList.cs
- XPathException.cs
- SubMenuStyle.cs
- RangeExpression.cs
- ImageButton.cs
- RtfNavigator.cs
- FindSimilarActivitiesVerb.cs
- MutexSecurity.cs
- ImageFormatConverter.cs
- UnsafeNativeMethods.cs
- AuthenticationSchemesHelper.cs
- XhtmlTextWriter.cs
- SafeNativeMethodsMilCoreApi.cs
- SrgsToken.cs
- WebEncodingValidatorAttribute.cs
- CacheSection.cs
- TaskScheduler.cs
- ActiveXHelper.cs
- MasterPageBuildProvider.cs
- HttpProfileBase.cs
- UserControl.cs
- TemplateComponentConnector.cs
- ArglessEventHandlerProxy.cs
- DatePickerTextBox.cs
- GeometryCombineModeValidation.cs
- Source.cs
- GenericTypeParameterConverter.cs
- ColorTransformHelper.cs
- ComContractElement.cs
- TableCell.cs
- tooltip.cs
- MetadataUtil.cs
- LinkDescriptor.cs
- ControlFilterExpression.cs
- QilGenerator.cs
- EditCommandColumn.cs
- DataGridViewCellCancelEventArgs.cs
- WebPartTracker.cs
- PerformanceCounterPermissionEntry.cs
- UnsafeNativeMethods.cs
- PriorityBinding.cs
- VariantWrapper.cs
- DataSourceBooleanViewSchemaConverter.cs
- COAUTHINFO.cs
- sqlcontext.cs
- ErrorHandlerFaultInfo.cs
- SimpleHandlerFactory.cs
- AutoSizeToolBoxItem.cs
- AsymmetricKeyExchangeFormatter.cs
- EventWaitHandle.cs
- WindowInteractionStateTracker.cs
- XhtmlBasicLinkAdapter.cs
- SqlUtils.cs
- TemplateBuilder.cs
- EventOpcode.cs
- ToolStripDropDownClosedEventArgs.cs
- BaseValidator.cs
- SystemSounds.cs
- ScriptBehaviorDescriptor.cs
- EventLogPermissionEntryCollection.cs
- PointConverter.cs
- WebMethodAttribute.cs
- ObjectPersistData.cs
- SolidBrush.cs
- SerializableAttribute.cs
- grammarelement.cs
- SessionPageStatePersister.cs
- AppearanceEditorPart.cs
- BuildProvider.cs
- MappableObjectManager.cs
- TransactionChannelFaultConverter.cs
- BinaryFormatterSinks.cs
- CodeRegionDirective.cs
- ListComponentEditorPage.cs
- PermissionAttributes.cs
- DynamicValidatorEventArgs.cs
- HttpFileCollectionBase.cs
- Timer.cs
- IDictionary.cs
- StreamGeometry.cs