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
- FtpCachePolicyElement.cs
- ParallelEnumerable.cs
- EntryPointNotFoundException.cs
- SelectionProcessor.cs
- TabletDeviceInfo.cs
- ResXResourceWriter.cs
- RequestQueryProcessor.cs
- PolyBezierSegment.cs
- MetadataItemSerializer.cs
- EastAsianLunisolarCalendar.cs
- XmlTextWriter.cs
- BindingContext.cs
- DataReaderContainer.cs
- EntityChangedParams.cs
- SmtpDigestAuthenticationModule.cs
- TemplateNameScope.cs
- TextRangeBase.cs
- ConfigXmlWhitespace.cs
- WindowsListBox.cs
- Transform3D.cs
- Point4DConverter.cs
- JournalEntryStack.cs
- ReservationNotFoundException.cs
- _ShellExpression.cs
- ErrorFormatterPage.cs
- _emptywebproxy.cs
- WsdlHelpGeneratorElement.cs
- TextServicesPropertyRanges.cs
- HttpCapabilitiesEvaluator.cs
- HwndSourceKeyboardInputSite.cs
- PrintPageEvent.cs
- ContextConfiguration.cs
- StringToken.cs
- Site.cs
- CodeStatement.cs
- Int32.cs
- COM2TypeInfoProcessor.cs
- SearchForVirtualItemEventArgs.cs
- DrawingCollection.cs
- QilTernary.cs
- XmlMemberMapping.cs
- ResourcePermissionBase.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- FontInfo.cs
- TextEndOfParagraph.cs
- BaseParser.cs
- SByteStorage.cs
- ControlPaint.cs
- HttpModuleCollection.cs
- RemotingSurrogateSelector.cs
- ViewManager.cs
- DataBoundLiteralControl.cs
- RadialGradientBrush.cs
- InkSerializer.cs
- CacheAxisQuery.cs
- __ConsoleStream.cs
- X509SecurityTokenAuthenticator.cs
- SynchronousChannel.cs
- AutomationElementCollection.cs
- recordstate.cs
- PermissionToken.cs
- MailWriter.cs
- ConstrainedGroup.cs
- EntityDataSourceStatementEditorForm.cs
- BuilderPropertyEntry.cs
- CompilationLock.cs
- ListChangedEventArgs.cs
- DataListItemEventArgs.cs
- PrePrepareMethodAttribute.cs
- PreviewKeyDownEventArgs.cs
- HttpChannelHelper.cs
- IpcChannel.cs
- TextElementAutomationPeer.cs
- MemberRelationshipService.cs
- WindowAutomationPeer.cs
- DBBindings.cs
- SystemException.cs
- LogicalExpressionTypeConverter.cs
- CoreChannel.cs
- GlobalProxySelection.cs
- X509ClientCertificateAuthentication.cs
- SiteIdentityPermission.cs
- FirewallWrapper.cs
- EditingCommands.cs
- XsltArgumentList.cs
- DateTimeFormatInfo.cs
- pingexception.cs
- SystemInfo.cs
- dbenumerator.cs
- KnownTypes.cs
- UnsafeNativeMethods.cs
- GlobalEventManager.cs
- WaitHandleCannotBeOpenedException.cs
- MimeReflector.cs
- DocumentXPathNavigator.cs
- WasHostedComPlusFactory.cs
- ByteStreamGeometryContext.cs
- MSAAEventDispatcher.cs
- WebBrowserContainer.cs
- DataGridColumnHeaderItemAutomationPeer.cs