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
- SoapFaultCodes.cs
- MenuEventArgs.cs
- HtmlInputSubmit.cs
- Figure.cs
- ZoneButton.cs
- UserNamePasswordValidationMode.cs
- ITextView.cs
- PostBackTrigger.cs
- BitmapSizeOptions.cs
- ReferentialConstraint.cs
- HtmlInputText.cs
- SID.cs
- EventManager.cs
- CircleHotSpot.cs
- ProviderBase.cs
- Mappings.cs
- ContainerTracking.cs
- XmlTypeAttribute.cs
- DrawListViewSubItemEventArgs.cs
- PartialTrustHelpers.cs
- ObjectParameter.cs
- TimeSpanMinutesConverter.cs
- ArrayConverter.cs
- SchemaDeclBase.cs
- XmlSchemaComplexContentExtension.cs
- TextTreeInsertElementUndoUnit.cs
- SecureConversationVersion.cs
- SemaphoreFullException.cs
- DataGridToolTip.cs
- TableCellsCollectionEditor.cs
- SendingRequestEventArgs.cs
- RtfToXamlLexer.cs
- SqlRecordBuffer.cs
- Stylus.cs
- BindingExpression.cs
- RemoteWebConfigurationHostStream.cs
- Point3DIndependentAnimationStorage.cs
- TextServicesPropertyRanges.cs
- ChildDocumentBlock.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- UInt64Converter.cs
- TextRenderingModeValidation.cs
- ProtocolViolationException.cs
- Style.cs
- PipelineModuleStepContainer.cs
- DbTransaction.cs
- PerfCounters.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- ToolStripSystemRenderer.cs
- ErrorHandlerModule.cs
- ISAPIWorkerRequest.cs
- _AutoWebProxyScriptHelper.cs
- MessageCredentialType.cs
- GlyphShapingProperties.cs
- RadioButtonAutomationPeer.cs
- CodeDomComponentSerializationService.cs
- NetworkStream.cs
- KnownTypes.cs
- CheckBoxList.cs
- FormsAuthentication.cs
- XmlSyndicationContent.cs
- StrokeCollection2.cs
- AQNBuilder.cs
- ServerProtocol.cs
- HwndMouseInputProvider.cs
- XmlReflectionMember.cs
- XmlNamedNodeMap.cs
- SurrogateSelector.cs
- CodeSnippetCompileUnit.cs
- SharedStatics.cs
- SchemaSetCompiler.cs
- DataBoundControlHelper.cs
- UpdatePanelTriggerCollection.cs
- ByteStreamBufferedMessageData.cs
- TemplateGroupCollection.cs
- WinFormsUtils.cs
- QueryResponse.cs
- MessageBodyDescription.cs
- PropertyMetadata.cs
- IntSecurity.cs
- BindingList.cs
- TemplatedMailWebEventProvider.cs
- TdsParser.cs
- Rules.cs
- SpellerStatusTable.cs
- PrePrepareMethodAttribute.cs
- StrokeRenderer.cs
- DataGridViewToolTip.cs
- FontFamilyConverter.cs
- QilFunction.cs
- rsa.cs
- CookieParameter.cs
- Span.cs
- BitmapEffectCollection.cs
- ExtractedStateEntry.cs
- CharEntityEncoderFallback.cs
- Int64KeyFrameCollection.cs
- DropSource.cs
- RootProfilePropertySettingsCollection.cs
- PageHandlerFactory.cs