Edit

Share via


BuildHttpClientBase.GetLatestBuildAsync Method

Definition

Overloads

GetLatestBuildAsync(Guid, String, String, Object, CancellationToken)

[Preview API] Gets the latest build for a definition, optionally scoped to a specific branch.

GetLatestBuildAsync(String, String, String, Object, CancellationToken)

[Preview API] Gets the latest build for a definition, optionally scoped to a specific branch.

GetLatestBuildAsync(Guid, String, String, Object, CancellationToken)

[Preview API] Gets the latest build for a definition, optionally scoped to a specific branch.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.Build> GetLatestBuildAsync (Guid project, string definition, string branchName = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetLatestBuildAsync : Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.Build>
override this.GetLatestBuildAsync : Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.Build>

Parameters

project
Guid

Project ID

definition
String

definition name with optional leading folder path, or the definition id

branchName
String

optional parameter that indicates the specific branch to use

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetLatestBuildAsync(String, String, String, Object, CancellationToken)

[Preview API] Gets the latest build for a definition, optionally scoped to a specific branch.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.Build> GetLatestBuildAsync (string project, string definition, string branchName = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetLatestBuildAsync : string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.Build>
override this.GetLatestBuildAsync : string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.Build>

Parameters

project
String

Project ID or project name

definition
String

definition name with optional leading folder path, or the definition id

branchName
String

optional parameter that indicates the specific branch to use

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to