Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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
- EventManager.cs
- Query.cs
- RuntimeWrappedException.cs
- printdlgexmarshaler.cs
- XmlDocumentFragment.cs
- TraceSection.cs
- ToolStripDropTargetManager.cs
- ConsumerConnectionPoint.cs
- Span.cs
- ProviderConnectionPoint.cs
- TrustManager.cs
- TreeView.cs
- SurrogateSelector.cs
- nulltextcontainer.cs
- SimpleTypesSurrogate.cs
- ModelServiceImpl.cs
- XmlSecureResolver.cs
- Matrix3D.cs
- EdmItemCollection.cs
- ImageResources.Designer.cs
- SqlFileStream.cs
- GB18030Encoding.cs
- ClientSideProviderDescription.cs
- WorkflowRuntimeServiceElementCollection.cs
- CodeComment.cs
- PlanCompiler.cs
- PartialCachingAttribute.cs
- WMICapabilities.cs
- ServiceHttpModule.cs
- Header.cs
- MyContact.cs
- XmlCodeExporter.cs
- ApplicationSecurityManager.cs
- CmsInterop.cs
- FlowDocumentPaginator.cs
- HwndSourceKeyboardInputSite.cs
- ContactManager.cs
- LogExtent.cs
- ExtendedProperty.cs
- ProviderBase.cs
- PrefixQName.cs
- MetadataPropertyCollection.cs
- MatchAllMessageFilter.cs
- MethodImplAttribute.cs
- StateManagedCollection.cs
- ExecutionEngineException.cs
- GregorianCalendarHelper.cs
- PageCodeDomTreeGenerator.cs
- ProfileSettings.cs
- BamlResourceContent.cs
- TextElement.cs
- ColumnResult.cs
- JsonReaderWriterFactory.cs
- ArraySegment.cs
- Overlapped.cs
- EntityDataSourceConfigureObjectContext.cs
- ChannelManagerHelpers.cs
- DeferredRunTextReference.cs
- OleAutBinder.cs
- SupportingTokenChannel.cs
- OrthographicCamera.cs
- EventEntry.cs
- HttpHandlersSection.cs
- OracleNumber.cs
- TrackingProfileDeserializationException.cs
- NetworkStream.cs
- LassoHelper.cs
- MarshalByRefObject.cs
- LogLogRecordEnumerator.cs
- RowType.cs
- ListViewSelectEventArgs.cs
- UnknownWrapper.cs
- DynamicControl.cs
- StaticResourceExtension.cs
- Bidi.cs
- AutomationElement.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- SkinBuilder.cs
- TrackBar.cs
- WindowsTab.cs
- _ShellExpression.cs
- UserPreference.cs
- LinqDataSourceValidationException.cs
- AdditionalEntityFunctions.cs
- AssociativeAggregationOperator.cs
- IDReferencePropertyAttribute.cs
- Interlocked.cs
- WindowsContainer.cs
- SendMessageChannelCache.cs
- PageThemeBuildProvider.cs
- X509ChainElement.cs
- IgnoreDeviceFilterElement.cs
- XmlAttributeProperties.cs
- TextEditorDragDrop.cs
- CharacterMetrics.cs
- ContextMenuService.cs
- FormsIdentity.cs
- ApplicationDirectoryMembershipCondition.cs
- TypeConverter.cs
- IndependentAnimationStorage.cs