Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextBox.cs
- WebConfigurationManager.cs
- ObjectQueryExecutionPlan.cs
- GlyphRunDrawing.cs
- EditingScope.cs
- Tuple.cs
- Viewport3DVisual.cs
- SafeCertificateContext.cs
- RequestQueue.cs
- NetworkInformationException.cs
- RegularExpressionValidator.cs
- MenuCommands.cs
- SqlCacheDependencySection.cs
- __Filters.cs
- DebugInfoExpression.cs
- BamlResourceDeserializer.cs
- DataRecordObjectView.cs
- ParameterBuilder.cs
- CollectionCodeDomSerializer.cs
- WCFBuildProvider.cs
- OdbcPermission.cs
- SmiTypedGetterSetter.cs
- Pen.cs
- UnsafeNativeMethods.cs
- BitmapFrameDecode.cs
- TypeForwardedToAttribute.cs
- XmlAnyElementAttribute.cs
- LabelDesigner.cs
- IntSecurity.cs
- PersonalizationEntry.cs
- SafeCryptContextHandle.cs
- ExpandableObjectConverter.cs
- CatalogPart.cs
- ClrProviderManifest.cs
- COM2PropertyDescriptor.cs
- XmlChildEnumerator.cs
- Vars.cs
- MatcherBuilder.cs
- StatusBarPanelClickEvent.cs
- GeneralTransform2DTo3DTo2D.cs
- UTF32Encoding.cs
- XmlDownloadManager.cs
- TrackBar.cs
- SiteMapPath.cs
- TimerEventSubscriptionCollection.cs
- TrackingConditionCollection.cs
- ManagedFilter.cs
- IssuerInformation.cs
- TableItemStyle.cs
- TransformDescriptor.cs
- FontDifferentiator.cs
- PlatformCulture.cs
- FormatSelectingMessageInspector.cs
- DataTableReaderListener.cs
- MorphHelper.cs
- WorkflowServiceHostFactory.cs
- ListViewGroup.cs
- MailWebEventProvider.cs
- DocumentationServerProtocol.cs
- LayoutEditorPart.cs
- CommonDialog.cs
- Single.cs
- DbUpdateCommandTree.cs
- HtmlInputHidden.cs
- IntranetCredentialPolicy.cs
- PenThreadWorker.cs
- DocumentViewerAutomationPeer.cs
- XmlAttributeAttribute.cs
- ReceiveDesigner.xaml.cs
- SafeFileMapViewHandle.cs
- RelOps.cs
- WebResponse.cs
- SelectQueryOperator.cs
- complextypematerializer.cs
- ConfigurationSection.cs
- SerializerProvider.cs
- FieldCollectionEditor.cs
- NetMsmqBindingCollectionElement.cs
- RenderDataDrawingContext.cs
- Encoder.cs
- SqlTypeSystemProvider.cs
- ProfessionalColorTable.cs
- ErrorItem.cs
- Int32.cs
- NotSupportedException.cs
- DispatcherObject.cs
- PersistenceException.cs
- FullTextState.cs
- RoleGroupCollectionEditor.cs
- SelectionHighlightInfo.cs
- WebPartManagerInternals.cs
- TextTabProperties.cs
- ElementNotAvailableException.cs
- DataGridViewComboBoxColumn.cs
- AuthenticationConfig.cs
- InheritedPropertyChangedEventArgs.cs
- RuleConditionDialog.Designer.cs
- Keywords.cs
- XPathAxisIterator.cs
- AttributeCollection.cs