ds19
ds19

Reputation: 3165

TFS API: Retrieving the list of teams for a team project

I'm using the below nugget packages in order to integrate some of the TFS functionality:

Microsoft.TeamFoundationServer.ExtendedClient Blockquote Microsoft.TeamFoundationServer.Client Blockquote Microsoft.VisualStudio.Services.Client Blockquote Microsoft.VisualStudio.Services.InteractiveClient

and I have difficulties finding the right method to retrieve the teams for a specific team project.

Based on the TFS REST API reference I should find the GetTeams method in the ProjectHttpClient class but it's missing.

enter image description here

Do you have any idea where I could find this method? Or how can I get the list of teams?

Upvotes: 0

Views: 638

Answers (1)

chief7
chief7

Reputation: 14373

You have to use the TeamHttpClient:

var client = new TeamHttpClient();
client.GetTeamsAsync("projectId");

Upvotes: 2

Related Questions