Share via


TeamFoundationServerFactory.GetServer 方法 (RegisteredProjectCollection)

获取与指定的 RegisteredProjectCollection 对象的 TeamFoundationServer 对象。

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

语法

声明
Public Shared Function GetServer ( _
    projectCollection As RegisteredProjectCollection _
) As TeamFoundationServer
public static TeamFoundationServer GetServer(
    RegisteredProjectCollection projectCollection
)

参数

返回值

类型:Microsoft.TeamFoundation.Client.TeamFoundationServer
与服务器在指定的 RegisteredProjectCollection 中描述的 TeamFoundationServer 对象。

.NET Framework 安全性

请参见

参考

TeamFoundationServerFactory 类

GetServer 重载

Microsoft.TeamFoundation.Client 命名空间