TFS API:检索团队项目的团队列表

时间:2016-03-24 12:49:55

标签: tfs tfs2015

我使用下面的块包来集成一些TFS功能:

  

Microsoft.TeamFoundationServer.ExtendedClient   大段引用   Microsoft.TeamFoundationServer.Client   大段引用   Microsoft.VisualStudio.Services.Client   大段引用   Microsoft.VisualStudio.Services.InteractiveClient

我很难找到正确的方法来检索特定团队项目的团队。

基于TFS REST API参考,我应该在ProjectHttpClient类中找到GetTeams方法,但它已经丢失了。

enter image description here

你知道我在哪里可以找到这种方法吗?或者我如何获得团队列表?

1 个答案:

答案 0 :(得分:2)

您必须使用TeamHttpClient:

var client = new TeamHttpClient();
client.GetTeamsAsync("projectId");
相关问题