BuildServiceHostUtilities.Register 方法 (IBuildServiceHost, String, String, X509Certificate2)
命名空间: Microsoft.TeamFoundation.Build.Config
程序集: Microsoft.TeamFoundation.Build.Config(在 Microsoft.TeamFoundation.Build.Config.dll 中)
语法
声明
Public Shared Sub Register ( _
serviceHost As IBuildServiceHost, _
userName As String, _
password As String, _
serverCertificate As X509Certificate2 _
)
public static void Register(
IBuildServiceHost serviceHost,
string userName,
string password,
X509Certificate2 serverCertificate
)
参数
- serviceHost
类型:Microsoft.TeamFoundation.Build.Client.IBuildServiceHost
- userName
类型:System.String
- password
类型:System.String
- serverCertificate
类型:System.Security.Cryptography.X509Certificates.X509Certificate2
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。