TfsConfigurationServer 构造函数 (Uri, ICredentials, ICredentialsProvider, IdentityDescriptor)

注意:此 API 现在已废弃不用。

初始化 TfsConfigurationServer 对象的新实例。

命名空间:  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 constructors which utilize TfsClientCredentials instead.")> _
Public Sub New ( _
    uri As Uri, _
    credentials As ICredentials, _
    credentialsProvider As ICredentialsProvider, _
    identityToImpersonate As IdentityDescriptor _
)
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See constructors which utilize TfsClientCredentials instead.")]
public TfsConfigurationServer(
    Uri uri,
    ICredentials credentials,
    ICredentialsProvider credentialsProvider,
    IdentityDescriptor identityToImpersonate
)

参数

  • uri
    类型:System.Uri
    服务器统一资源标识符运行 Team Foundation Server的 (URI)。

异常

异常 条件
ArgumentNullException

当 uri 或 credentials 为空

.NET Framework 安全性

请参阅

参考

TfsConfigurationServer 类

TfsConfigurationServer 重载

Microsoft.TeamFoundation.Client 命名空间

其他资源

从控制台应用程序连接到 Team Foundation Server

从控制台应用程序连接到 Team Foundation Server