Share via


IWorkspace3 接口

定义

用于扩展 IWorkspace2的接口。

public interface class IWorkspace3 : IServiceProvider, Microsoft::VisualStudio::Threading::IAsyncDisposable, Microsoft::VisualStudio::Workspace::IWorkspace2
public interface IWorkspace3 : IServiceProvider, Microsoft.VisualStudio.Threading.IAsyncDisposable, Microsoft.VisualStudio.Workspace.IWorkspace2
type IWorkspace3 = interface
    interface IWorkspace2
    interface IWorkspace
    interface IServiceProvider
    interface IAsyncServiceProvider
    interface IAsyncDisposable
Public Interface IWorkspace3
Implements IAsyncDisposable, IServiceProvider, IWorkspace2
实现

属性

DisposeToken

工作区释放令牌

(继承自 IWorkspace2)
JTF

与 JTFCollection 关联的 的 JoinableTaskFactory 实例。 使用 IWorkspace.JTF 启动异步工作 (而不是 Task.Run) 。

(继承自 IWorkspace)
Location

获取源树的根目录的路径。

(继承自 IWorkspace)
Locations

获取源树的根目录的路径。

方法

DisposeAsync()

以异步方式执行与释放或重置非托管资源相关的应用程序定义的任务。

(继承自 IAsyncDisposable)
GetActionsForContextsAsync(String, IEnumerable<FileContext>, CancellationToken)

获取应用于一组文件上下文的操作

(继承自 IWorkspace)
GetDirectoriesAsync(String, Boolean, CancellationToken)

获取工作区中的一组目录。

(继承自 IWorkspace)
GetFileContextActionsAsync(String, IEnumerable<Guid>, CancellationToken)

获取指定路径处可用的操作。

(继承自 IWorkspace)
GetFileContextActionsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken)

获取工作区上下文中可用的操作

(继承自 IWorkspace)
GetFileContextsAsync(String, IEnumerable<Guid>, CancellationToken)

获取与指定工作区位置关联的文件上下文。

(继承自 IWorkspace)
GetFileContextsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken)

获取工作区上下文的文件上下文

(继承自 IWorkspace)
GetFileContextsForLanguageServicesAsync(String, CancellationToken)

为文件上下文路径返回匹配的 ILanguageServiceProvider

(继承自 IWorkspace)
GetFilesAsync(String, Boolean, CancellationToken)

获取工作区中的一组文件。

(继承自 IWorkspace)
GetServiceAsync(Type)

获取服务

(继承自 IAsyncServiceProvider)
MakeRelative(String)

将绝对路径转换为相对于此工作区根的路径。

(继承自 IWorkspace)
MakeRooted(String)

获取给定路径的绝对路径,该路径可能相对于 Workspace.Location。

(继承自 IWorkspace)

扩展方法

GetFirstFileContextActionAsync<T>(IWorkspace, String, T, IEnumerable<Guid>, CancellationToken)

获取工作区上下文的第一个可用操作

GetFirstFileContextsAsync<T>(IWorkspace, String, T, IEnumerable<Guid>, CancellationToken)

获取工作区上下文的第一个可用上下文

GetGlobalSettingsFolder(IWorkspace)

获取此工作区的工作文件夹

GetWorkspaceWorkingFolder(IWorkspace)

获取此工作区的工作文件夹

MakeRootedUnderWorkingFolder(IWorkspace, String)

获取工作区工作文件夹下的完整路径。

GetAssetsManager(IWorkspace)

获取共享访问控制服务

GetBuildMessageService(IWorkspace)

从工作区返回生成消息服务

GetBuildService(IWorkspace)

从工作区返回生成服务

GetBuildService2(IWorkspace)

从工作区返回 IBuildService2

GetBuildService3(IWorkspace)

从工作区返回 IBuildService3

GetCustomContextService(IWorkspace)

返回 ICustomContextService 服务

GetFileWatcherService(IWorkspace)

获取工作区的 IFileSystemChanged 服务

GetFindFilesService(IWorkspace)

获取工作区的 IFindFilesService 服务

GetIndexWorkspaceDataService(IWorkspace)

获取工作区实例的 IIndexWorkspaceDataService

GetIndexWorkspaceService(IWorkspace)

获取工作区实例的 IIndexWorkspaceService

GetProjectConfigurationServiceAsync(IWorkspace)

返回 IProjectConfigurationManager 服务

GetPropertyEvaluatorServiceAsync(IWorkspace)

返回 IPropertyEvaluatorService 服务

GetService<T>(IWorkspace, Boolean)

从工作区获取服务类型

GetServiceAsync<T>(IWorkspace, Boolean)

使用异步模式从工作区获取服务类型

GetSettingsManager(IWorkspace)

获取工作区的 IWorkspaceSettingsManager 服务

GetUINodeOperationEventServiceAsync(IWorkspace)

获取 IUINodeOperationEventService 工作区实例的

适用于