BuildHttpClientBase.GetBuildBadgeAsync 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.
Overloads
GetBuildBadgeAsync(String, String, String, String, Object, CancellationToken) |
[Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. |
GetBuildBadgeAsync(Guid, String, String, String, Object, CancellationToken) |
[Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. |
GetBuildBadgeAsync(String, String, String, String, Object, CancellationToken)
[Preview API] Gets a badge that indicates the status of the most recent build for the specified branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildBadge> GetBuildBadgeAsync (string project, string repoType, string repoId = null, string branchName = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetBuildBadgeAsync : string * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildBadge>
override this.GetBuildBadgeAsync : string * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildBadge>
Parameters
- project
- String
Project ID or project name
- repoType
- String
The repository type.
- repoId
- String
The repository ID.
- branchName
- String
The branch name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetBuildBadgeAsync(Guid, String, String, String, Object, CancellationToken)
[Preview API] Gets a badge that indicates the status of the most recent build for the specified branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildBadge> GetBuildBadgeAsync (Guid project, string repoType, string repoId = null, string branchName = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetBuildBadgeAsync : Guid * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildBadge>
override this.GetBuildBadgeAsync : Guid * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildBadge>
Parameters
- project
- Guid
Project ID
- repoType
- String
The repository type.
- repoId
- String
The repository ID.
- branchName
- String
The branch name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.