TeamHttpClientBase.GetTeamsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Preview API] Get a list of teams.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>> GetTeamsAsync(string projectId, Nullable<bool> mine = null, Nullable<int> top = null, Nullable<int> skip = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetTeamsAsync : string * Nullable<bool> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Core.WebApi.WebApiTeam>>
Parameters
- projectId
- String
If true return all the teams requesting user is member, otherwise return all the teams user has read access
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.