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
- DeclarativeCatalogPart.cs
- XmlDocumentSerializer.cs
- MessageAction.cs
- _LocalDataStoreMgr.cs
- Canvas.cs
- XmlLanguageConverter.cs
- LinkedResource.cs
- ResXResourceReader.cs
- UnsafeNativeMethodsTablet.cs
- CLSCompliantAttribute.cs
- WorkflowExecutor.cs
- SrgsOneOf.cs
- Choices.cs
- Drawing.cs
- PointF.cs
- OracleRowUpdatedEventArgs.cs
- RectangleGeometry.cs
- SecurityHeader.cs
- RightsManagementManager.cs
- DrawingAttributes.cs
- PersonalizationDictionary.cs
- FlagsAttribute.cs
- SortDescriptionCollection.cs
- SeekableMessageNavigator.cs
- EntityDataSourceSelectingEventArgs.cs
- SqlNamer.cs
- QueryCacheKey.cs
- RecommendedAsConfigurableAttribute.cs
- TextOptionsInternal.cs
- EventPropertyMap.cs
- SynchronousChannel.cs
- FixedSchema.cs
- LinqDataSourceSelectEventArgs.cs
- UInt64Storage.cs
- RadioButtonBaseAdapter.cs
- xmlNames.cs
- TextTreeTextElementNode.cs
- InvalidFilterCriteriaException.cs
- DisplayMemberTemplateSelector.cs
- PersistChildrenAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- Int32AnimationBase.cs
- Hashtable.cs
- StatusBarPanel.cs
- SecureConversationServiceCredential.cs
- XmlSchemaSet.cs
- __Error.cs
- InsufficientMemoryException.cs
- DesignerRegion.cs
- Site.cs
- CheckBox.cs
- X509CertificateTrustedIssuerElementCollection.cs
- WebRequest.cs
- SessionStateContainer.cs
- FactoryMaker.cs
- SegmentInfo.cs
- StateItem.cs
- SqlStatistics.cs
- WebUtility.cs
- brushes.cs
- PathData.cs
- PnrpPermission.cs
- LocalFileSettingsProvider.cs
- ToolZone.cs
- RequestResizeEvent.cs
- WindowsScrollBar.cs
- QueuePathEditor.cs
- HttpWrapper.cs
- SafeCertificateStore.cs
- __Filters.cs
- ModelItemImpl.cs
- RetriableClipboard.cs
- InkCanvasAutomationPeer.cs
- ISFClipboardData.cs
- InlineUIContainer.cs
- DateTimeConstantAttribute.cs
- CompositeControl.cs
- TableHeaderCell.cs
- TableCell.cs
- ControllableStoryboardAction.cs
- BrowserCapabilitiesCompiler.cs
- SecurityElement.cs
- ADMembershipProvider.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Int32Animation.cs
- ActivationServices.cs
- ManagedWndProcTracker.cs
- ArraySortHelper.cs
- BindValidationContext.cs
- AuthenticationConfig.cs
- StreamUpgradeProvider.cs
- CounterCreationDataCollection.cs
- MemberRelationshipService.cs
- ClientApiGenerator.cs
- ToolStripPanelRow.cs
- streamingZipPartStream.cs
- TextEffect.cs
- InheritanceService.cs
- DataGridItemCollection.cs
- ContentElement.cs