IVsAsyncShellOpenDocument 接口

定义

一个服务接口,提供一组异步打开文档的方法。

[System.Runtime.InteropServices.Guid("6A55D18F-6DB5-4993-B503-11EB77949CAB")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsAsyncShellOpenDocument
[<System.Runtime.InteropServices.Guid("6A55D18F-6DB5-4993-B503-11EB77949CAB")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsAsyncShellOpenDocument = interface
Public Interface IVsAsyncShellOpenDocument
属性

方法

GetProvisionalViewingStatusForEditorAsync(Guid, Guid)

检索编辑器和逻辑视图组合的临时查看状态。

GetProvisionalViewingStatusForFileAsync(String, IVsHierarchy, UInt32, Guid)

获取文件的临时查看状态。

OpenCopyOfStandardEditorAsync(IVsWindowFrame, Guid)

用于实现 Window.NewWindow 功能。

OpenDocumentViaProjectAsync(String, Guid, Boolean)

查找相应的项目以打开文档。

OpenDocumentViaProjectWithSpecificAsync(String, UInt32, Guid, String, Guid)

查找用于打开此文档的指定项目。

OpenSpecificEditorAsync(UInt32, String, Guid, String, Guid, String, IVsUIHierarchy, UInt32, Boolean, Object, IServiceProvider)

使用指定的编辑器异步打开文档。

OpenStandardEditorAsync(UInt32, String, Guid, String, IVsUIHierarchy, UInt32, Boolean, Object, IServiceProvider)

使用标准编辑器打开文件。 它将首先确定文件的默认编辑器工厂是否已配置。 如果尚未配置默认值,它将循环访问按优先级排序的编辑器工厂列表,以查找支持文档的第一个工厂。 如果无法打开文档,则会引发异常。

适用于