Compartilhar via


WorkspaceServiceHelper.GetCustomContextServiceAsync(IWorkspace) Method

Definition

Get the ICustomContextService service for a workspace.

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

Parameters

workspace
IWorkspace

workspace instance.

Returns

A Task representing the asynchronous operation whose result is either an instance of ICustomContextService or null.

Applies to