Partager via


IBuildService.BuildAsync Method

Definition

Invokes the BuildAction on a list of buildable items.

public:
 System::Threading::Tasks::ValueTask<Microsoft::VisualStudio::RpcContracts::Build::BuildResult> BuildAsync(Microsoft::VisualStudio::RpcContracts::Build::BuildAction buildAction, System::Collections::Generic::IReadOnlyList<System::String ^> ^ buildableIds, IProgress<int> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.Build.BuildResult> BuildAsync (Microsoft.VisualStudio.RpcContracts.Build.BuildAction buildAction, System.Collections.Generic.IReadOnlyList<string> buildableIds, IProgress<int> progress, System.Threading.CancellationToken cancellationToken);
abstract member BuildAsync : Microsoft.VisualStudio.RpcContracts.Build.BuildAction * System.Collections.Generic.IReadOnlyList<string> * IProgress<int> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.Build.BuildResult>
Public Function BuildAsync (buildAction As BuildAction, buildableIds As IReadOnlyList(Of String), progress As IProgress(Of Integer), cancellationToken As CancellationToken) As ValueTask(Of BuildResult)

Parameters

buildAction
BuildAction

The BuildAction to be executed.

buildableIds
IReadOnlyList<String>

The Id of BuildableItems to be built.

progress
IProgress<Int32>

The build progress in percentage.

cancellationToken
CancellationToken

The cancellation token.

Returns

The completion task with a BuildResult.

Exceptions

Thrown if the caller passes an unrecognized buildable id.

Applies to