Share via


TfsTeamProjectCollectionFactory.GetTeamProjectCollection 方法 (String, Boolean, Boolean)

检索为特定服务器上使用的TfsTeamProjectCollection对象。

命名空间:  Microsoft.TeamFoundation.Client
程序集:  Microsoft.TeamFoundation.Client(在 Microsoft.TeamFoundation.Client.dll 中)

语法

声明
Public Shared Function GetTeamProjectCollection ( _
    serverName As String, _
    ensureAuthenticated As Boolean, _
    ensureServerIsLocallyRegistered As Boolean _
) As TfsTeamProjectCollection
public static TfsTeamProjectCollection GetTeamProjectCollection(
    string serverName,
    bool ensureAuthenticated,
    bool ensureServerIsLocallyRegistered
)

参数

  • serverName
    类型:System.String
    连接到的服务器的名称。
  • ensureServerIsLocallyRegistered
    类型:System.Boolean
    创建此服务器注册项。

返回值

类型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection

.NET Framework 安全性

请参见

参考

TfsTeamProjectCollectionFactory 类

GetTeamProjectCollection 重载

Microsoft.TeamFoundation.Client 命名空间