Edit

Share via


WorkItemTrackingHttpClientCompatBase.GetWorkItemTypeFieldsAsync Method

Definition

Overloads

GetWorkItemTypeFieldsAsync(Guid, String, Nullable<WorkItemTypeFieldsExpandLevel>, Object, CancellationToken)

[Preview API] Get a list of fields for a work Item type.

GetWorkItemTypeFieldsAsync(String, String, Nullable<WorkItemTypeFieldsExpandLevel>, Object, CancellationToken)

[Preview API] Get a list of fields for a work Item type.

GetWorkItemTypeFieldsAsync(Guid, String, Nullable<WorkItemTypeFieldsExpandLevel>, Object, CancellationToken)

[Preview API] Get a list of fields for a work Item type.

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

Parameters

project
Guid

Project ID

type
String

Work item type.

expand
Nullable<WorkItemTypeFieldsExpandLevel>

Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetWorkItemTypeFieldsAsync(String, String, Nullable<WorkItemTypeFieldsExpandLevel>, Object, CancellationToken)

[Preview API] Get a list of fields for a work Item type.

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

Parameters

project
String

Project ID or project name

type
String

Work item type.

expand
Nullable<WorkItemTypeFieldsExpandLevel>

Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to