Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WebPartConnectionsCloseVerb.cs
- TextEditorThreadLocalStore.cs
- DPAPIProtectedConfigurationProvider.cs
- TraceXPathNavigator.cs
- TransformedBitmap.cs
- MaterialGroup.cs
- XmlValidatingReader.cs
- CustomValidator.cs
- CodeTypeDelegate.cs
- InternalUserCancelledException.cs
- ValidatingPropertiesEventArgs.cs
- AutoGeneratedField.cs
- XmlExtensionFunction.cs
- GacUtil.cs
- TargetException.cs
- HttpResponseHeader.cs
- RegexReplacement.cs
- StructuredType.cs
- GradientStop.cs
- PrintPreviewDialog.cs
- ZoneMembershipCondition.cs
- EncryptedData.cs
- XmlTextWriter.cs
- LoginName.cs
- DBConnection.cs
- SortDescription.cs
- OledbConnectionStringbuilder.cs
- XPathDescendantIterator.cs
- ExceptionUtil.cs
- Command.cs
- EventProviderBase.cs
- QilScopedVisitor.cs
- URLMembershipCondition.cs
- CuspData.cs
- ResolveNameEventArgs.cs
- DynamicField.cs
- ImageIndexEditor.cs
- DataSourceControl.cs
- UInt16Converter.cs
- Int16Converter.cs
- ExtensionQuery.cs
- XmlDataProvider.cs
- HMACSHA256.cs
- ProcessInputEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- TypeUtils.cs
- SplineQuaternionKeyFrame.cs
- WebEventCodes.cs
- Int16Storage.cs
- ImageList.cs
- TypeInitializationException.cs
- StorageComplexTypeMapping.cs
- DbSetClause.cs
- UnknownBitmapDecoder.cs
- SimpleMailWebEventProvider.cs
- MultipleViewPattern.cs
- NameValueCollection.cs
- CompositeDataBoundControl.cs
- CompilationPass2Task.cs
- ResourceIDHelper.cs
- CodeSnippetExpression.cs
- FilteredSchemaElementLookUpTable.cs
- Constants.cs
- ResXBuildProvider.cs
- UnsafeNativeMethods.cs
- GeometryHitTestResult.cs
- UnsafeNetInfoNativeMethods.cs
- WindowsFont.cs
- XamlTypeMapperSchemaContext.cs
- GridSplitter.cs
- XmlWrappingReader.cs
- ObjectManager.cs
- RegionInfo.cs
- SqlRecordBuffer.cs
- HttpWriter.cs
- RichListBox.cs
- FrameworkTextComposition.cs
- CodeTypeMemberCollection.cs
- RetrieveVirtualItemEventArgs.cs
- RecognizerInfo.cs
- TransformPattern.cs
- OleCmdHelper.cs
- FileUpload.cs
- XPathNodeIterator.cs
- DataPagerCommandEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- DesignerTextViewAdapter.cs
- PathSegmentCollection.cs
- ComPlusSynchronizationContext.cs
- NameSpaceExtractor.cs
- TreeViewItem.cs
- DbConnectionInternal.cs
- NameValueConfigurationCollection.cs
- WorkflowServiceAttributes.cs
- ControlBuilderAttribute.cs
- SqlCachedBuffer.cs
- ColorIndependentAnimationStorage.cs
- Shared.cs
- EntityDataSourceValidationException.cs
- InputBinding.cs