TfsConfigurationServerFactory.GetConfigurationServer 方法 (Uri, ICredentialsProvider)

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

取得 TfsConfigurationServer 執行個體與伺服器在指定的 URI 和後援認證提供者。

命名空間:  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(Uri) instead.",  _
    False)> _
Public Shared Function GetConfigurationServer ( _
    uri As Uri, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TfsConfigurationServer
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetConfigurationServer(Uri) instead.", 
    false)]
public static TfsConfigurationServer GetConfigurationServer(
    Uri uri,
    ICredentialsProvider fallbackCredentialsProvider
)

參數

  • uri
    類型:System.Uri
    執行 Team Foundation Server 的伺服器 URI。

傳回值

類型:Microsoft.TeamFoundation.Client.TfsConfigurationServer
TfsConfigurationServer 執行個體與伺服器在指定的認證提供者指定的 URI。

備註

如果具有指定之 URI 的 TfsConfigurationServer 物件存在於快取中,則會傳回。 否則,新的 TfsConfigurationServer 執行個體建立使用認證提供者,如果有的話,為環境適當的。 建立的 TfsConfigurationServer 物件在快取區位置並與用於名稱解析的 URI。

.NET Framework 安全性

請參閱

參考

TfsConfigurationServerFactory 類別

GetConfigurationServer 多載

Microsoft.TeamFoundation.Client 命名空間