Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PhysicalOps.cs
- DataServiceQueryProvider.cs
- CompilationPass2TaskInternal.cs
- ReliabilityContractAttribute.cs
- HistoryEventArgs.cs
- PointUtil.cs
- Stacktrace.cs
- WebPartVerbCollection.cs
- KeyInterop.cs
- SoapIgnoreAttribute.cs
- DataList.cs
- AuthorizationRuleCollection.cs
- DurableInstancingOptions.cs
- ObjectSet.cs
- MergeFilterQuery.cs
- EventEntry.cs
- TransactionOptions.cs
- _ListenerRequestStream.cs
- VisualTarget.cs
- SHA512Managed.cs
- ListViewItemSelectionChangedEvent.cs
- PageRequestManager.cs
- MemoryRecordBuffer.cs
- BeginEvent.cs
- ResourcesBuildProvider.cs
- AliasedSlot.cs
- MasterPageParser.cs
- ConditionCollection.cs
- DataGridViewImageCell.cs
- __ConsoleStream.cs
- PointLightBase.cs
- CultureInfo.cs
- NamedObject.cs
- MailMessage.cs
- BlurBitmapEffect.cs
- EntitySqlQueryBuilder.cs
- ErrorWebPart.cs
- RelationshipDetailsRow.cs
- HitTestWithPointDrawingContextWalker.cs
- MappingSource.cs
- SiteMembershipCondition.cs
- TransactionsSectionGroup.cs
- RequestCacheEntry.cs
- InternalTypeHelper.cs
- DivideByZeroException.cs
- ObjectItemConventionAssemblyLoader.cs
- BufferModesCollection.cs
- InstanceDescriptor.cs
- InvokeMethodDesigner.xaml.cs
- TogglePattern.cs
- ReaderWriterLock.cs
- WindowsMenu.cs
- SettingsPropertyNotFoundException.cs
- EnterpriseServicesHelper.cs
- Rect.cs
- TreeIterator.cs
- XmlEncodedRawTextWriter.cs
- CommittableTransaction.cs
- StylusEditingBehavior.cs
- IApplicationTrustManager.cs
- RequestQueryProcessor.cs
- GrammarBuilderBase.cs
- RawUIStateInputReport.cs
- DataBindingCollection.cs
- UnsafeNativeMethods.cs
- GridSplitterAutomationPeer.cs
- UrlAuthorizationModule.cs
- QualificationDataItem.cs
- PostBackTrigger.cs
- OracleParameterBinding.cs
- StyleModeStack.cs
- IOException.cs
- DebugManager.cs
- XhtmlTextWriter.cs
- BooleanFacetDescriptionElement.cs
- CodeEventReferenceExpression.cs
- RichTextBoxAutomationPeer.cs
- fixedPageContentExtractor.cs
- DPCustomTypeDescriptor.cs
- BindValidationContext.cs
- PixelFormats.cs
- ConfigsHelper.cs
- LinkLabel.cs
- SecurityUtils.cs
- FontSourceCollection.cs
- BindingGroup.cs
- XmlNamespaceDeclarationsAttribute.cs
- MarkupCompiler.cs
- XmlSchemaComplexType.cs
- ReferencedType.cs
- RequestCacheManager.cs
- XNameConverter.cs
- CompositeScriptReferenceEventArgs.cs
- TranslateTransform.cs
- EventDescriptorCollection.cs
- TypeBuilderInstantiation.cs
- ThicknessAnimation.cs
- ClickablePoint.cs
- MouseOverProperty.cs
- TemplateBamlTreeBuilder.cs