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
)
参数
- projectCollection
类型:Microsoft.TeamFoundation.Client.RegisteredProjectCollection
包含有关服务器的信息的 RegisteredProjectCollection 实例。
返回值
类型:Microsoft.TeamFoundation.Client.TeamFoundationServer
与服务器在指定的 RegisteredProjectCollection 中描述的 TeamFoundationServer 对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。