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
- TableLayoutCellPaintEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- XmlWrappingReader.cs
- ReflectionUtil.cs
- PartialArray.cs
- ColumnPropertiesGroup.cs
- EventToken.cs
- Simplifier.cs
- TagNameToTypeMapper.cs
- ContextMenuStripGroup.cs
- TemplateNameScope.cs
- Debug.cs
- CodeMethodInvokeExpression.cs
- TextEndOfSegment.cs
- MediaEntryAttribute.cs
- Console.cs
- RemoteWebConfigurationHostServer.cs
- ActionItem.cs
- __ConsoleStream.cs
- ClientRoleProvider.cs
- PinnedBufferMemoryStream.cs
- PersonalizationState.cs
- Triplet.cs
- EnumBuilder.cs
- ResourceType.cs
- XamlTreeBuilderBamlRecordWriter.cs
- Buffer.cs
- ReflectionUtil.cs
- MappingItemCollection.cs
- Pen.cs
- UnsafeNetInfoNativeMethods.cs
- BamlResourceSerializer.cs
- ButtonFieldBase.cs
- DesignSurface.cs
- WpfWebRequestHelper.cs
- StreamWriter.cs
- SoapFault.cs
- TypedReference.cs
- WebZone.cs
- SessionPageStateSection.cs
- ISFClipboardData.cs
- CompilationLock.cs
- ResourceSetExpression.cs
- HitTestWithPointDrawingContextWalker.cs
- AnonymousIdentificationSection.cs
- CmsInterop.cs
- HandlerBase.cs
- DiagnosticTrace.cs
- SQLDateTime.cs
- SessionState.cs
- TextFormatter.cs
- PointLightBase.cs
- SocketException.cs
- PageRequestManager.cs
- Config.cs
- XPathSingletonIterator.cs
- NativeMethodsOther.cs
- NetDataContractSerializer.cs
- sqlinternaltransaction.cs
- RefreshEventArgs.cs
- XsltQilFactory.cs
- IProducerConsumerCollection.cs
- XmlKeywords.cs
- RepeaterItemCollection.cs
- DataTrigger.cs
- KnownTypes.cs
- ValidationUtility.cs
- DropShadowBitmapEffect.cs
- WebBrowserNavigatedEventHandler.cs
- ResourceReferenceExpressionConverter.cs
- IODescriptionAttribute.cs
- XmlSerializableWriter.cs
- WebPartCancelEventArgs.cs
- XmlChildEnumerator.cs
- GestureRecognizer.cs
- configsystem.cs
- CqlWriter.cs
- SqlXml.cs
- HostingEnvironment.cs
- OutputCacheSettings.cs
- RemotingClientProxy.cs
- WebBrowserPermission.cs
- TextEditorContextMenu.cs
- PropertyDescriptorComparer.cs
- FormClosingEvent.cs
- CodeConstructor.cs
- ExternalFile.cs
- SHA1.cs
- VersionPair.cs
- DrawingCollection.cs
- NativeMethods.cs
- Dispatcher.cs
- Brush.cs
- InputProcessorProfilesLoader.cs
- RevocationPoint.cs
- COM2TypeInfoProcessor.cs
- ControlIdConverter.cs
- TreeView.cs
- DbResourceAllocator.cs
- DataGridComponentEditor.cs