共用方式為


TeamFoundationServerFactory.GetServer 方法 (RegisteredProjectCollection, ICredentialsProvider)

取得與指定之物件的 RegisteredProjectCollection TeamFoundationServer 物件。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
Public Shared Function GetServer ( _
    projectCollection As RegisteredProjectCollection, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TeamFoundationServer
public static TeamFoundationServer GetServer(
    RegisteredProjectCollection projectCollection,
    ICredentialsProvider fallbackCredentialsProvider
)

參數

傳回值

類型:Microsoft.TeamFoundation.Client.TeamFoundationServer
與伺服器在指定的 RegisteredProjectCollection 中描述的 TeamFoundationServer 物件。

.NET Framework 安全性

請參閱

參考

TeamFoundationServerFactory 類別

GetServer 多載

Microsoft.TeamFoundation.Client 命名空間