IBuildService.BuildAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The completion task with a BuildResult.
Exceptions
Thrown if the caller passes an unrecognized buildable id.