共用方式為


IWorkspace3 Interface

Definition

Interface to extend 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
Derived
Implements

Properties

DisposeToken

The workspace dispose token

(Inherited from IWorkspace2)
JTF

Instance of JoinableTaskFactory associated with JTFCollection. Use IWorkspace.JTF to start async work (instead of Task.Run).

(Inherited from IWorkspace)
Location

Gets the path to the root directory of the source tree.

(Inherited from IWorkspace)
Locations

Gets the paths to the root directories of the source tree.

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

(Inherited from IAsyncDisposable)
GetActionsForContextsAsync(String, IEnumerable<FileContext>, CancellationToken)

Gets actions that apply to a set of file contexts

(Inherited from IWorkspace)
GetDirectoriesAsync(String, Boolean, CancellationToken)

Gets a set of directories within the workspace.

(Inherited from IWorkspace)
GetFileContextActionsAsync(String, IEnumerable<Guid>, CancellationToken)

Gets the actions available at the specified path.

(Inherited from IWorkspace)
GetFileContextActionsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken)

Gets the actions available on a workspace context

(Inherited from IWorkspace)
GetFileContextsAsync(String, IEnumerable<Guid>, CancellationToken)

Gets the file contexts associated with the specified workspace location.

(Inherited from IWorkspace)
GetFileContextsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken)

Get file contexts for a workspace context

(Inherited from IWorkspace)
GetFileContextsForLanguageServicesAsync(String, CancellationToken)

Return matched ILanguageServiceProvider's for a file context path

(Inherited from IWorkspace)
GetFilesAsync(String, Boolean, CancellationToken)

Gets a set of files within the workspace.

(Inherited from IWorkspace)
GetServiceAsync(Type)

Get the service

(Inherited from IAsyncServiceProvider)
MakeRelative(String)

Converts an absolute path to a path relative to the root of this workspace.

(Inherited from IWorkspace)
MakeRooted(String)

Gets the absolute path for a given path, which may be relative to Workspace.Location.

(Inherited from IWorkspace)

Extension Methods

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

Get the first available action for a workspace context

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

Get the first available context for a workspace context

GetGlobalSettingsFolder(IWorkspace)

Get the working folder for this workspace

GetWorkspaceWorkingFolder(IWorkspace)

Get the working folder for this workspace

MakeRootedUnderWorkingFolder(IWorkspace, String)

Get a full path under workspace working folder.

GetAssetsManager(IWorkspace)

Get the IAssetsAccessManager for a workspace.

GetAssetsManagerAsync(IWorkspace)

Get the IAssetsAccessManager for a workspace.

GetBuildMessageService(IWorkspace)

Get the IBuildMessageService for a workspace.

GetBuildMessageServiceAsync(IWorkspace)

Get the IBuildMessageService for a workspace.

GetBuildService(IWorkspace)

Get the IBuildService for a workspace.

GetBuildService2(IWorkspace)

Get the IBuildService2 for a workspace.

GetBuildService2Async(IWorkspace)

Get the IBuildService2 for a workspace.

GetBuildService3(IWorkspace)

Get the IBuildService3 for a workspace.

GetBuildService3Async(IWorkspace)

Get the IBuildService3 for a workspace.

GetBuildServiceAsync(IWorkspace)

Get the IBuildService for a workspace.

GetCustomContextService(IWorkspace)

Get the ICustomContextService for a workspace.

GetCustomContextServiceAsync(IWorkspace)

Get the ICustomContextService service for a workspace.

GetFileWatcherService(IWorkspace)

Get the IFileWatcherService for a workspace.

GetFileWatcherServiceAsync(IWorkspace)

Get the IFileWatcherService for a workspace.

GetFindFilesService(IWorkspace)

Get the IFindFilesService service for a workspace.

GetFindFilesServiceAsync(IWorkspace)

Get the IFindFilesService service for a workspace.

GetIndexWorkspaceDataService(IWorkspace)

Get the IIndexWorkspaceDataService for a workspace instance.

GetIndexWorkspaceDataServiceAsync(IWorkspace)

Get the IIndexWorkspaceDataService for a workspace instance.

GetIndexWorkspaceService(IWorkspace)

Get the IIndexWorkspaceService for a workspace instance.

GetIndexWorkspaceServiceAsync(IWorkspace)

Get the IIndexWorkspaceService for a workspace instance.

GetProjectConfigurationServiceAsync(IWorkspace)

Get the IProjectConfigurationManager for a workspace.

GetPropertyEvaluatorServiceAsync(IWorkspace)

Get the IPropertyEvaluatorService for a workspace.

GetService<T>(IWorkspace, Boolean)

Get a service type from a workspace

GetServiceAsync<T>(IWorkspace, Boolean)

Get a service type from a workspace using the async pattern

GetSettingsManager(IWorkspace)

Get the IWorkspaceSettingsManager service for a workspace.

GetSettingsManagerAsync(IWorkspace)

Get the IWorkspaceSettingsManager service for a workspace.

GetUINodeOperationEventServiceAsync(IWorkspace)

Get the IUINodeOperationEventService for a workspace.

Applies to