Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- _DisconnectOverlappedAsyncResult.cs
- NullableLongMinMaxAggregationOperator.cs
- ButtonStandardAdapter.cs
- InternalControlCollection.cs
- TemplateBindingExpressionConverter.cs
- DataBoundControlParameterTarget.cs
- SettingsPropertyIsReadOnlyException.cs
- MemoryMappedViewAccessor.cs
- DataGridCellItemAutomationPeer.cs
- DirectionalLight.cs
- SqlServer2KCompatibilityAnnotation.cs
- UnSafeCharBuffer.cs
- CollectionViewGroup.cs
- BaseDataList.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- TextRangeEdit.cs
- ToolBarButton.cs
- HttpBrowserCapabilitiesBase.cs
- ConfigurationLocation.cs
- SapiGrammar.cs
- DocumentXmlWriter.cs
- XmlHierarchyData.cs
- documentsequencetextpointer.cs
- SafeCertificateContext.cs
- FloaterBaseParaClient.cs
- PageParserFilter.cs
- DataGridViewComponentPropertyGridSite.cs
- ProtocolsSection.cs
- SecUtil.cs
- RepeatEnumerable.cs
- DataGridViewTopLeftHeaderCell.cs
- ResourceManager.cs
- propertyentry.cs
- LineInfo.cs
- VSWCFServiceContractGenerator.cs
- DataGridItemCollection.cs
- MouseDevice.cs
- GeometryDrawing.cs
- XmlCharacterData.cs
- DateTimeUtil.cs
- PageAdapter.cs
- FixedTextView.cs
- FormViewDeletedEventArgs.cs
- Point3DConverter.cs
- ToolStripContentPanel.cs
- UserInitiatedNavigationPermission.cs
- ExceptionTrace.cs
- DataGridViewRowConverter.cs
- ElasticEase.cs
- CodeEventReferenceExpression.cs
- PrintPreviewGraphics.cs
- Point4D.cs
- SqlHelper.cs
- SortAction.cs
- ToolTipAutomationPeer.cs
- ConfigurationException.cs
- UInt16Converter.cs
- WindowsToolbarItemAsMenuItem.cs
- LambdaCompiler.Binary.cs
- DirectoryNotFoundException.cs
- DefaultTextStore.cs
- MDIClient.cs
- entityreference_tresulttype.cs
- DynamicResourceExtensionConverter.cs
- ApplicationTrust.cs
- SeverityFilter.cs
- BuildProviderUtils.cs
- PieceNameHelper.cs
- SByteConverter.cs
- GridViewColumnHeader.cs
- ArrangedElement.cs
- XsdBuilder.cs
- ContentFilePart.cs
- ButtonBase.cs
- ClientSponsor.cs
- TokenBasedSet.cs
- NativeMethods.cs
- ConfigurationManagerHelperFactory.cs
- CodeSnippetTypeMember.cs
- Evidence.cs
- TypeConverterValueSerializer.cs
- _RequestLifetimeSetter.cs
- WebBrowserUriTypeConverter.cs
- TextDecorationLocationValidation.cs
- StreamWriter.cs
- Soap12ProtocolImporter.cs
- BindingManagerDataErrorEventArgs.cs
- CompositeActivityTypeDescriptorProvider.cs
- EditingCoordinator.cs
- Ipv6Element.cs
- AndCondition.cs
- DbTypeMap.cs
- ViewCellSlot.cs
- MultiPageTextView.cs
- ManagedWndProcTracker.cs
- SslStreamSecurityElement.cs
- PassportIdentity.cs
- SessionEndingEventArgs.cs
- TagPrefixInfo.cs
- String.cs