Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TraceListeners.cs
- ObjectStorage.cs
- WindowClosedEventArgs.cs
- HtmlWindow.cs
- PropertyEntry.cs
- SafeLibraryHandle.cs
- PreviewKeyDownEventArgs.cs
- uribuilder.cs
- X509CertificateChain.cs
- RsaSecurityToken.cs
- InkPresenterAutomationPeer.cs
- CodeExporter.cs
- XmlIncludeAttribute.cs
- TypeConstant.cs
- HeaderElement.cs
- log.cs
- InvalidFilterCriteriaException.cs
- DataGridViewComboBoxCell.cs
- xsdvalidator.cs
- DbModificationClause.cs
- InstanceDataCollectionCollection.cs
- QuaternionAnimationUsingKeyFrames.cs
- KeyProperty.cs
- ActiveXHost.cs
- ProbeDuplexAsyncResult.cs
- EdmItemCollection.OcAssemblyCache.cs
- documentsequencetextcontainer.cs
- Marshal.cs
- PropagatorResult.cs
- RenamedEventArgs.cs
- ScrollChangedEventArgs.cs
- XmlObjectSerializerWriteContext.cs
- ToolStripScrollButton.cs
- ListViewTableCell.cs
- ObfuscateAssemblyAttribute.cs
- ButtonPopupAdapter.cs
- FormatterServices.cs
- ConstructorBuilder.cs
- BitmapMetadataEnumerator.cs
- CustomError.cs
- MobileControlBuilder.cs
- SizeValueSerializer.cs
- TargetConverter.cs
- SoapSchemaImporter.cs
- tooltip.cs
- MappingException.cs
- ParameterElement.cs
- EntityRecordInfo.cs
- TemplatedWizardStep.cs
- HttpCapabilitiesBase.cs
- GACIdentityPermission.cs
- SubMenuStyle.cs
- ListViewItemCollectionEditor.cs
- AuthenticationModuleElementCollection.cs
- FrugalMap.cs
- Win32SafeHandles.cs
- SourceSwitch.cs
- InfoCardListRequest.cs
- ProjectionCamera.cs
- DictionaryKeyPropertyAttribute.cs
- InfocardInteractiveChannelInitializer.cs
- AddInServer.cs
- RegexMatch.cs
- SqlColumnizer.cs
- LogicalExpr.cs
- PngBitmapDecoder.cs
- ToolStripLabel.cs
- UdpRetransmissionSettings.cs
- SerialReceived.cs
- VideoDrawing.cs
- SiteMapHierarchicalDataSourceView.cs
- PortCache.cs
- TaiwanLunisolarCalendar.cs
- MenuItemStyle.cs
- XmlTypeAttribute.cs
- ResolveNameEventArgs.cs
- CertificateReferenceElement.cs
- PreloadedPackages.cs
- QilTypeChecker.cs
- RuntimeConfigurationRecord.cs
- ValidatorCompatibilityHelper.cs
- ResourceAssociationSetEnd.cs
- IsolatedStorageFilePermission.cs
- ComponentResourceManager.cs
- BlurEffect.cs
- Events.cs
- X509CertificateChain.cs
- MsmqChannelFactoryBase.cs
- AuthenticationException.cs
- StickyNoteAnnotations.cs
- Error.cs
- CollectionBase.cs
- SqlDataSourceEnumerator.cs
- InputScope.cs
- TreeNodeCollectionEditor.cs
- CoTaskMemHandle.cs
- ClientConvert.cs
- Rules.cs
- SemaphoreFullException.cs
- StateWorkerRequest.cs