共用方式為


TfsConfigurationServerFactory.GetConfigurationServer 方法 (RegisteredConfigurationServer, ICredentialsProvider)

注意:這個應用程式開發介面現在已經過時。

取得 TfsConfigurationServer 執行個體與指定的 RegisteredConfigurationServer 執行個體。

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

語法

'宣告
<ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetConfigurationServer(RegisteredConfigurationServer) instead.",  _
    False)> _
Public Shared Function GetConfigurationServer ( _
    application As RegisteredConfigurationServer, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TfsConfigurationServer
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetConfigurationServer(RegisteredConfigurationServer) instead.", 
    false)]
public static TfsConfigurationServer GetConfigurationServer(
    RegisteredConfigurationServer application,
    ICredentialsProvider fallbackCredentialsProvider
)

參數

傳回值

類型:Microsoft.TeamFoundation.Client.TfsConfigurationServer
TfsConfigurationServer 執行個體與指定的 RegisteredConfigurationServer 描述的伺服器。

.NET Framework 安全性

請參閱

參考

TfsConfigurationServerFactory 類別

GetConfigurationServer 多載

Microsoft.TeamFoundation.Client 命名空間