Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FontFaceLayoutInfo.cs
- TextReader.cs
- TimeoutValidationAttribute.cs
- StaticContext.cs
- NavigateEvent.cs
- PerformanceCounterManager.cs
- ActivityInterfaces.cs
- Menu.cs
- TabletDeviceInfo.cs
- FormParameter.cs
- SqlCacheDependencyDatabase.cs
- TextTreeFixupNode.cs
- initElementDictionary.cs
- BufferedStream2.cs
- XmlILTrace.cs
- securitymgrsite.cs
- DefaultTraceListener.cs
- Stylus.cs
- DeviceContexts.cs
- EntityTypeEmitter.cs
- TagElement.cs
- Size.cs
- AnimatedTypeHelpers.cs
- JsonDeserializer.cs
- HandlerWithFactory.cs
- RelationshipDetailsRow.cs
- FunctionDetailsReader.cs
- UndoEngine.cs
- CalendarDay.cs
- SmtpDigestAuthenticationModule.cs
- FontStretchConverter.cs
- XmlnsPrefixAttribute.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SecureStringHasher.cs
- TcpAppDomainProtocolHandler.cs
- dataSvcMapFileLoader.cs
- GroupBoxDesigner.cs
- SqlClientWrapperSmiStream.cs
- SystemPens.cs
- ControlAdapter.cs
- DataGridHeaderBorder.cs
- Image.cs
- AnnotationMap.cs
- AuthenticationException.cs
- ExceptionHelpers.cs
- DesignTimeParseData.cs
- TextEditorSpelling.cs
- StateFinalizationDesigner.cs
- RecordManager.cs
- SymmetricKeyWrap.cs
- FontFamilyIdentifier.cs
- ResourcesBuildProvider.cs
- FileCodeGroup.cs
- MostlySingletonList.cs
- ContentType.cs
- GraphicsContainer.cs
- AuthorizationBehavior.cs
- MetadataArtifactLoaderResource.cs
- __Filters.cs
- TdsParserSessionPool.cs
- RuntimeConfigurationRecord.cs
- ConnectionOrientedTransportManager.cs
- XmlFileEditor.cs
- Visitors.cs
- ContextStaticAttribute.cs
- LinkConverter.cs
- mediapermission.cs
- ApplicationActivator.cs
- MsdtcClusterUtils.cs
- DispatcherSynchronizationContext.cs
- RC2.cs
- UrlParameterWriter.cs
- EntityChangedParams.cs
- MatrixAnimationUsingKeyFrames.cs
- ConstraintStruct.cs
- NavigationProgressEventArgs.cs
- TwoPhaseCommit.cs
- HotSpot.cs
- ObjectFullSpanRewriter.cs
- FormViewUpdatedEventArgs.cs
- BrowserDefinition.cs
- StyleCollection.cs
- WaveHeader.cs
- ScriptDescriptor.cs
- Italic.cs
- MsmqIntegrationReceiveParameters.cs
- SafeCloseHandleCritical.cs
- PathData.cs
- DataGridViewHeaderCell.cs
- DbConnectionPoolGroup.cs
- ResumeStoryboard.cs
- ListViewTableRow.cs
- SqlFormatter.cs
- QilList.cs
- Polygon.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- XhtmlTextWriter.cs
- TransactionProtocol.cs
- HtmlLiteralTextAdapter.cs
- ADConnectionHelper.cs