Partager via


WorkspaceServiceHelper.GetBuildService2Async(IWorkspace) Method

Definition

Get the IBuildService2 for a workspace.

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

Parameters

workspace
IWorkspace

workspace instance.

Returns

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

Applies to