Edit

Share via


BuildHttpClientBase.GetFoldersAsync Method

Definition

Overloads

GetFoldersAsync(Guid, String, Nullable<FolderQueryOrder>, Object, CancellationToken)

[Preview API] Gets a list of build definition folders.

GetFoldersAsync(String, String, Nullable<FolderQueryOrder>, Object, CancellationToken)

[Preview API] Gets a list of build definition folders.

GetFoldersAsync(Guid, String, Nullable<FolderQueryOrder>, Object, CancellationToken)

[Preview API] Gets a list of build definition folders.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.Folder>> GetFoldersAsync (Guid project, string path = null, Nullable<Microsoft.TeamFoundation.Build.WebApi.FolderQueryOrder> queryOrder = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFoldersAsync : Guid * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.FolderQueryOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.Folder>>
override this.GetFoldersAsync : Guid * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.FolderQueryOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.Folder>>

Parameters

project
Guid

Project ID

path
String

The path to start with.

queryOrder
Nullable<FolderQueryOrder>

The order in which folders should be returned.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetFoldersAsync(String, String, Nullable<FolderQueryOrder>, Object, CancellationToken)

[Preview API] Gets a list of build definition folders.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.Folder>> GetFoldersAsync (string project, string path = null, Nullable<Microsoft.TeamFoundation.Build.WebApi.FolderQueryOrder> queryOrder = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFoldersAsync : string * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.FolderQueryOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.Folder>>
override this.GetFoldersAsync : string * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.FolderQueryOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.Folder>>

Parameters

project
String

Project ID or project name

path
String

The path to start with.

queryOrder
Nullable<FolderQueryOrder>

The order in which folders should be returned.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to