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
- ShapingEngine.cs
- x509store.cs
- OdbcErrorCollection.cs
- Misc.cs
- DbConnectionPoolGroup.cs
- LogArchiveSnapshot.cs
- HelpHtmlBuilder.cs
- ActivitySurrogateSelector.cs
- ToolStripContainerDesigner.cs
- Int32KeyFrameCollection.cs
- ReflectPropertyDescriptor.cs
- LogReserveAndAppendState.cs
- ClickablePoint.cs
- EnumMember.cs
- Endpoint.cs
- FileEnumerator.cs
- OleDbRowUpdatedEvent.cs
- SafeEventHandle.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WebContext.cs
- ObjectReaderCompiler.cs
- UriExt.cs
- DocumentCollection.cs
- EditorZoneAutoFormat.cs
- DataTableReaderListener.cs
- HttpListenerRequest.cs
- DataColumnChangeEvent.cs
- SqlWebEventProvider.cs
- DockPatternIdentifiers.cs
- PopupRoot.cs
- ServicePointManager.cs
- Privilege.cs
- EmptyEnumerator.cs
- StaticResourceExtension.cs
- EntityDataSourceUtil.cs
- X509UI.cs
- RenderingBiasValidation.cs
- HtmlTableRow.cs
- UdpDiscoveryMessageFilter.cs
- TemplateLookupAction.cs
- ObjectItemNoOpAssemblyLoader.cs
- SerialErrors.cs
- BitArray.cs
- ArgumentException.cs
- PropertyPushdownHelper.cs
- CodeIndexerExpression.cs
- SymmetricKeyWrap.cs
- InheritanceAttribute.cs
- ClientScriptManagerWrapper.cs
- TimelineGroup.cs
- PageParserFilter.cs
- Cursors.cs
- UriScheme.cs
- SeparatorAutomationPeer.cs
- ConfigDefinitionUpdates.cs
- compensatingcollection.cs
- GenerateScriptTypeAttribute.cs
- JpegBitmapEncoder.cs
- IndexOutOfRangeException.cs
- FrameSecurityDescriptor.cs
- SessionStateModule.cs
- RowToFieldTransformer.cs
- CollectionViewSource.cs
- MenuCommands.cs
- HMACSHA1.cs
- SqlConnectionFactory.cs
- CDSsyncETWBCLProvider.cs
- PreviewPageInfo.cs
- DataGridBoolColumn.cs
- DbMetaDataColumnNames.cs
- RequestCacheValidator.cs
- DLinqTableProvider.cs
- TextHidden.cs
- DataServiceConfiguration.cs
- SharedConnectionInfo.cs
- DeploymentSectionCache.cs
- DetailsViewUpdateEventArgs.cs
- TrimSurroundingWhitespaceAttribute.cs
- LineSegment.cs
- BinaryMethodMessage.cs
- ComMethodElement.cs
- DefaultValueAttribute.cs
- Graphics.cs
- DragEventArgs.cs
- ParserContext.cs
- TabItemAutomationPeer.cs
- ToolStripMenuItem.cs
- LineBreak.cs
- SoapAttributeOverrides.cs
- SqlFacetAttribute.cs
- PartitionerStatic.cs
- WebPartDisplayModeCancelEventArgs.cs
- Sql8ExpressionRewriter.cs
- DependencyObjectProvider.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- TraceListener.cs
- MsmqIntegrationProcessProtocolHandler.cs
- GenericEnumConverter.cs
- WebHeaderCollection.cs
- DataGridViewSelectedRowCollection.cs