Edit

Share via


WorkItemTrackingHttpClientBase.GetRootNodesAsync Method

Definition

Overloads

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

[Preview API] Gets root classification nodes under the project.

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

[Preview API] Gets root classification nodes under the project.

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

[Preview API] Gets root classification nodes under the project.

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

Parameters

project
Guid

Project ID

depth
Nullable<Int32>

Depth of children to fetch.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

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

[Preview API] Gets root classification nodes under the project.

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

Parameters

project
String

Project ID or project name

depth
Nullable<Int32>

Depth of children to fetch.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to