TfsConfigurationServer 构造函数 (RegisteredConfigurationServer, ICredentials, ICredentialsProvider)
注意:此 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 ( _
application As RegisteredConfigurationServer, _
credentials As ICredentials, _
credentialsProvider As ICredentialsProvider _
)
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See constructors which utilize TfsClientCredentials instead.")]
public TfsConfigurationServer(
RegisteredConfigurationServer application,
ICredentials credentials,
ICredentialsProvider credentialsProvider
)
参数
- application
类型:Microsoft.TeamFoundation.Client.RegisteredConfigurationServer
运行 Team Foundation Server的注册服务器。
- credentials
类型:System.Net.ICredentials
用于验证该用户添加到服务器的凭据。
- credentialsProvider
类型:Microsoft.TeamFoundation.Client.ICredentialsProvider
调用以获取新的凭据,当指定的凭据失败。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。
请参阅
参考
Microsoft.TeamFoundation.Client 命名空间