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
- SocketException.cs
- ResourceReferenceKeyNotFoundException.cs
- HtmlInputReset.cs
- TabControlEvent.cs
- TypeInitializationException.cs
- VectorCollectionValueSerializer.cs
- CodeStatementCollection.cs
- WebRequestModuleElement.cs
- DrawingAttributes.cs
- HyperLinkField.cs
- ThreadInterruptedException.cs
- ProgressiveCrcCalculatingStream.cs
- TextServicesCompartment.cs
- MenuItemStyleCollection.cs
- OleDbReferenceCollection.cs
- AdCreatedEventArgs.cs
- WorkflowApplicationIdleEventArgs.cs
- EntityContainerEntitySetDefiningQuery.cs
- MachineKeySection.cs
- TextEffect.cs
- autovalidator.cs
- CheckBoxFlatAdapter.cs
- SqlServices.cs
- ListViewItem.cs
- HuffCodec.cs
- PanelContainerDesigner.cs
- MimeMultiPart.cs
- XamlSerializer.cs
- ConstNode.cs
- LongValidatorAttribute.cs
- RequestCache.cs
- EntityProxyTypeInfo.cs
- ExpressionTextBox.xaml.cs
- RecognizerBase.cs
- QueryConverter.cs
- DataBindingExpressionBuilder.cs
- EdmConstants.cs
- Button.cs
- SByte.cs
- ColorAnimationBase.cs
- BitmapEffectRenderDataResource.cs
- RangeValidator.cs
- MapPathBasedVirtualPathProvider.cs
- DataSourceXmlTextReader.cs
- TabletDeviceInfo.cs
- SystemInfo.cs
- Operator.cs
- SerializationException.cs
- ToolStripButton.cs
- IfAction.cs
- InvalidAsynchronousStateException.cs
- SingleAnimationBase.cs
- XmlAnyAttributeAttribute.cs
- SingletonChannelAcceptor.cs
- NativeMethods.cs
- RadioButtonPopupAdapter.cs
- QueryOutputWriter.cs
- TrackingValidationObjectDictionary.cs
- SoapCodeExporter.cs
- MachineKeySection.cs
- Vector3dCollection.cs
- IUnknownConstantAttribute.cs
- OutputCacheProfileCollection.cs
- String.cs
- BuildResult.cs
- CookielessHelper.cs
- FormClosingEvent.cs
- _OverlappedAsyncResult.cs
- ChangeConflicts.cs
- Point3DAnimation.cs
- ManagementObjectCollection.cs
- FieldBuilder.cs
- SecuritySessionFilter.cs
- ToggleButtonAutomationPeer.cs
- GridViewAutomationPeer.cs
- nulltextcontainer.cs
- ExpandoClass.cs
- WebBodyFormatMessageProperty.cs
- MouseEvent.cs
- ListViewSortEventArgs.cs
- DbRetry.cs
- ActivityExecutorSurrogate.cs
- CodeDelegateInvokeExpression.cs
- GuidTagList.cs
- RectangleF.cs
- DecoderBestFitFallback.cs
- ServiceDescriptions.cs
- MetadataResolver.cs
- FilterFactory.cs
- ListenDesigner.cs
- ContractReference.cs
- RoutingUtilities.cs
- ReferencedType.cs
- LogSwitch.cs
- TranslateTransform.cs
- CngKeyCreationParameters.cs
- ExtensionDataObject.cs
- ByteRangeDownloader.cs
- RowsCopiedEventArgs.cs
- WindowsListBox.cs