Share via


WorkspaceServiceHelper.GetIndexWorkspaceServiceAsync(IWorkspace) Method

Definition

Get the IIndexWorkspaceService for a workspace instance.

public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService?> GetIndexWorkspaceServiceAsync (this Microsoft.VisualStudio.Workspace.IWorkspace workspace);
static member GetIndexWorkspaceServiceAsync : Microsoft.VisualStudio.Workspace.IWorkspace -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService>
<Extension()>
Public Function GetIndexWorkspaceServiceAsync (workspace As IWorkspace) As Task(Of IIndexWorkspaceService)

Parameters

workspace
IWorkspace

workspace instance.

Returns

A Task representing the asynchronous operation whose result will be either an instance of the IIndexWorkspaceService or null.

Applies to