Share via


TfsConfigurationServer 构造函数 (Uri, ICredentials)

初始化TfsConfigurationServer对象的新实例。

命名空间:  Microsoft.TeamFoundation.Client
程序集:  Microsoft.TeamFoundation.Client(在 Microsoft.TeamFoundation.Client.dll 中)

语法

声明
Public Sub New ( _
    uri As Uri, _
    credentials As ICredentials _
)
public TfsConfigurationServer(
    Uri uri,
    ICredentials credentials
)

参数

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

异常

异常 条件
ArgumentNullException

当 uri 或 credentials 为空

.NET Framework 安全性

请参见

参考

TfsConfigurationServer 类

TfsConfigurationServer 重载

Microsoft.TeamFoundation.Client 命名空间

其他资源

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

Acting on Behalf of Another User (Impersonation)