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
- SqlDataRecord.cs
- UriParserTemplates.cs
- SecurityKeyIdentifier.cs
- ValidationRule.cs
- EntityChangedParams.cs
- StrokeNode.cs
- SymbolTable.cs
- WebPartEventArgs.cs
- ListSourceHelper.cs
- EventPrivateKey.cs
- XPathQueryGenerator.cs
- EmptyWithCancelationCheckWorkItem.cs
- AsmxEndpointPickerExtension.cs
- FormCollection.cs
- InputReferenceExpression.cs
- CodeIdentifiers.cs
- RemotingConfiguration.cs
- GenericTypeParameterBuilder.cs
- XmlConverter.cs
- DoubleAnimationBase.cs
- ClientSession.cs
- KerberosSecurityTokenProvider.cs
- TableLayoutStyleCollection.cs
- AdornerHitTestResult.cs
- XXXInfos.cs
- Glyph.cs
- Int64AnimationBase.cs
- PagesSection.cs
- AdCreatedEventArgs.cs
- DataGridViewImageColumn.cs
- ReflectionPermission.cs
- DomainUpDown.cs
- HttpErrorTraceRecord.cs
- DynamicResourceExtensionConverter.cs
- SamlConditions.cs
- ServiceHost.cs
- WindowsTooltip.cs
- PolicyManager.cs
- VectorCollectionConverter.cs
- ListParaClient.cs
- BooleanSwitch.cs
- DBConnectionString.cs
- Triangle.cs
- TouchDevice.cs
- SineEase.cs
- AssemblyBuilderData.cs
- HtmlInputButton.cs
- BooleanAnimationUsingKeyFrames.cs
- ResizeGrip.cs
- AlternateView.cs
- TranslateTransform3D.cs
- HTMLTextWriter.cs
- SurrogateChar.cs
- SqlClientFactory.cs
- DNS.cs
- XsltSettings.cs
- SystemIcons.cs
- FlowDocumentPaginator.cs
- CfgArc.cs
- Journal.cs
- WebExceptionStatus.cs
- DragAssistanceManager.cs
- ConcurrentDictionary.cs
- Grant.cs
- IDReferencePropertyAttribute.cs
- MetaTable.cs
- XmlStreamStore.cs
- PackageRelationshipSelector.cs
- Misc.cs
- SafeLibraryHandle.cs
- MSAAEventDispatcher.cs
- Soap11ServerProtocol.cs
- AssemblyNameUtility.cs
- AudioBase.cs
- ExeConfigurationFileMap.cs
- Enum.cs
- AffineTransform3D.cs
- PerfService.cs
- KnownIds.cs
- BrowserCapabilitiesCompiler.cs
- RelationshipFixer.cs
- AdRotator.cs
- FixedNode.cs
- SqlNode.cs
- PropertyBuilder.cs
- CodeRegionDirective.cs
- VisualTreeFlattener.cs
- JapaneseLunisolarCalendar.cs
- SqlException.cs
- HtmlToClrEventProxy.cs
- SqlWebEventProvider.cs
- SmtpNegotiateAuthenticationModule.cs
- XmlElementAttribute.cs
- SspiWrapper.cs
- AddInPipelineAttributes.cs
- DrawingDrawingContext.cs
- TextServicesManager.cs
- JournalNavigationScope.cs
- MarkupWriter.cs
- Overlapped.cs