Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Permissions / CompoundFileIOPermission.cs / 1305600 / 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalParameterlessPermissionBase { public CompoundFileIOPermission() : this(PermissionState.Unrestricted) { } public CompoundFileIOPermission(PermissionState state): base(state) { } 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalParameterlessPermissionBase { public CompoundFileIOPermission() : this(PermissionState.Unrestricted) { } public CompoundFileIOPermission(PermissionState state): base(state) { } 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
- ChannelTracker.cs
- DataSpaceManager.cs
- COM2IProvidePropertyBuilderHandler.cs
- SimpleWebHandlerParser.cs
- ReadOnlyDataSourceView.cs
- ServiceModelPerformanceCounters.cs
- MSAANativeProvider.cs
- _PooledStream.cs
- OleDbRowUpdatingEvent.cs
- InternalDispatchObject.cs
- BinaryConverter.cs
- ScrollChangedEventArgs.cs
- ToolStripPanel.cs
- DatagridviewDisplayedBandsData.cs
- TextLine.cs
- CodeExpressionStatement.cs
- TreeNodeBindingDepthConverter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- AdvancedBindingEditor.cs
- DragDrop.cs
- XmlUtf8RawTextWriter.cs
- RectAnimationUsingKeyFrames.cs
- TranslateTransform3D.cs
- MDIControlStrip.cs
- SourceLocationProvider.cs
- TextureBrush.cs
- TextDecorationCollection.cs
- SafeRightsManagementPubHandle.cs
- UserUseLicenseDictionaryLoader.cs
- Metadata.cs
- ClientConvert.cs
- ListQueryResults.cs
- LZCodec.cs
- TransactionScope.cs
- SemanticKeyElement.cs
- _SpnDictionary.cs
- Formatter.cs
- Interlocked.cs
- MediaTimeline.cs
- ZipFileInfo.cs
- WebSysDefaultValueAttribute.cs
- DataObject.cs
- TypedTableBase.cs
- HtmlTextViewAdapter.cs
- WindowsListViewGroupSubsetLink.cs
- TrackBar.cs
- SqlDependencyListener.cs
- DataSpaceManager.cs
- Misc.cs
- DeviceContexts.cs
- AliasedSlot.cs
- DataGridLengthConverter.cs
- MetabaseServerConfig.cs
- ModuleElement.cs
- StringResourceManager.cs
- BrushValueSerializer.cs
- QilPatternFactory.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TableLayoutSettingsTypeConverter.cs
- tooltip.cs
- LineGeometry.cs
- ToolBar.cs
- HealthMonitoringSection.cs
- DefaultEventAttribute.cs
- WrappedDispatcherException.cs
- XmlAnyAttributeAttribute.cs
- UserControlBuildProvider.cs
- CodeConstructor.cs
- StatusBar.cs
- QuotedPrintableStream.cs
- WebPartConnectionsConfigureVerb.cs
- WindowsServiceElement.cs
- SystemException.cs
- CachedCompositeFamily.cs
- FocusWithinProperty.cs
- InfocardClientCredentials.cs
- StandardOleMarshalObject.cs
- XmlChildNodes.cs
- DataSourceCacheDurationConverter.cs
- NameObjectCollectionBase.cs
- XPathDocument.cs
- MexHttpBindingElement.cs
- MailBnfHelper.cs
- UnsettableComboBox.cs
- TreeNodeCollectionEditor.cs
- ListViewCommandEventArgs.cs
- CodeTypeConstructor.cs
- JulianCalendar.cs
- LassoSelectionBehavior.cs
- UnitySerializationHolder.cs
- COAUTHINFO.cs
- EncoderReplacementFallback.cs
- NamespaceEmitter.cs
- XhtmlCssHandler.cs
- GatewayDefinition.cs
- Sql8ConformanceChecker.cs
- OpenTypeCommon.cs
- XappLauncher.cs
- DeclarationUpdate.cs
- MaskedTextProvider.cs