Share via


BuildServiceHostUtilities.ChangeEndpointAndUser 方法

注意:這個應用程式開發介面現在已經過時。

變更這個端點傳入的 URI,例如 http://machinename:9191 —和目前註冊的服務主機的服務帳戶。

命名空間:  Microsoft.TeamFoundation.Build.Config
組件:  Microsoft.TeamFoundation.Build.Config (在 Microsoft.TeamFoundation.Build.Config.dll 中)

語法

'宣告
<ObsoleteAttribute("This method has been deprecated. Please remove all references.",  _
    False)> _
Public Shared Sub ChangeEndpointAndUser ( _
    endpoint As String, _
    serverCertificate As X509Certificate2, _
    userName As String, _
    password As String _
)
[ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    false)]
public static void ChangeEndpointAndUser(
    string endpoint,
    X509Certificate2 serverCertificate,
    string userName,
    string password
)

參數

  • endpoint
    類型:System.String
    目前已登錄的服務主機的新端點。
  • userName
    類型:System.String
    使用的服務帳戶服務主機。如果空白,將使用網路服務。

.NET Framework 安全性

請參閱

參考

BuildServiceHostUtilities 類別

Microsoft.TeamFoundation.Build.Config 命名空間