Edit

Share via


BuildHttpClientBase.GetBuildWorkItemsRefsAsync Method

Definition

Overloads

GetBuildWorkItemsRefsAsync(String, Int32, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the work items associated with a build.

GetBuildWorkItemsRefsAsync(Guid, Int32, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the work items associated with a build.

GetBuildWorkItemsRefsAsync(String, Int32, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the work items associated with a build.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>> GetBuildWorkItemsRefsAsync (string project, int buildId, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetBuildWorkItemsRefsAsync : string * int * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>>
override this.GetBuildWorkItemsRefsAsync : string * int * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>>

Parameters

project
String

Project ID or project name

buildId
Int32

The ID of the build.

top
Nullable<Int32>

The maximum number of work items to return.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Task<List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>>

Applies to

GetBuildWorkItemsRefsAsync(Guid, Int32, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the work items associated with a build.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>> GetBuildWorkItemsRefsAsync (Guid project, int buildId, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetBuildWorkItemsRefsAsync : Guid * int * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>>
override this.GetBuildWorkItemsRefsAsync : Guid * int * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>>

Parameters

project
Guid

Project ID

buildId
Int32

The ID of the build.

top
Nullable<Int32>

The maximum number of work items to return.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Task<List<Microsoft.VisualStudio.Services.WebApi.ResourceRef>>

Applies to