Edit

TeamHttpClientBase.GetAllTeamsAsync Method

Definition

[Preview API] Get a list of all teams.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>> GetAllTeamsAsync(Nullable<bool> mine = null, Nullable<int> top = null, Nullable<int> skip = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAllTeamsAsync : Nullable<bool> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>>
override this.GetAllTeamsAsync : Nullable<bool> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>>

Parameters

mine
Nullable<Boolean>

If true return all the teams requesting user is member, otherwise return all the teams user has read access

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

Applies to