Edit

Share via


WorkItemTrackingHttpClientBase.GetWorkItemTypeStatesAsync Method

Definition

Overloads

GetWorkItemTypeStatesAsync(Guid, String, Object, CancellationToken)

[Preview API] Returns the state names and colors for a work item type.

GetWorkItemTypeStatesAsync(String, String, Object, CancellationToken)

[Preview API] Returns the state names and colors for a work item type.

GetWorkItemTypeStatesAsync(Guid, String, Object, CancellationToken)

[Preview API] Returns the state names and colors for a work item type.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemStateColor>> GetWorkItemTypeStatesAsync (Guid project, string type, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetWorkItemTypeStatesAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemStateColor>>
override this.GetWorkItemTypeStatesAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemStateColor>>

Parameters

project
Guid

Project ID

type
String

The state name

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetWorkItemTypeStatesAsync(String, String, Object, CancellationToken)

[Preview API] Returns the state names and colors for a work item type.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemStateColor>> GetWorkItemTypeStatesAsync (string project, string type, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetWorkItemTypeStatesAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemStateColor>>
override this.GetWorkItemTypeStatesAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemStateColor>>

Parameters

project
String

Project ID or project name

type
String

The state name

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to