Edit

TeamCompatHttpClientBase.GetTeamsAsync Method

Definition

Caution

This API is now deprecated.

[Preview API] Get a list of teams.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>> GetTeamsAsync(string projectId, Nullable<int> top, Nullable<int> skip, object userState, System.Threading.CancellationToken cancellationToken);
abstract member GetTeamsAsync : string * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>>
override this.GetTeamsAsync : string * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>>

Parameters

projectId
String
top
Nullable<Int32>

Maximum number of teams to return.

skip
Nullable<Int32>

Number of teams to skip.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to