Share via


TfsConfigurationServerFactory.GetConfigurationServer 方法 (Uri, ICredentialsProvider)

注意:此 API 现在已过时。

获取 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 使用凭据提供程序创建,如果有,为该环境中运行。 为该名称在缓存中并与 URI 解析的创建的 TfsConfigurationServer 对象。

.NET Framework 安全性

请参见

参考

TfsConfigurationServerFactory 类

GetConfigurationServer 重载

Microsoft.TeamFoundation.Client 命名空间