Share via


BuildServiceHostUtilities.ChangeUser 方法

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

變更目前註冊的服務主機的服務帳戶。

命名空間:  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 ChangeUser ( _
    userName As String, _
    password As String _
)
[ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    false)]
public static void ChangeUser(
    string userName,
    string password
)

參數

  • userName
    類型:System.String
    使用的服務帳戶服務主機。如果空白,將使用網路服務。

.NET Framework 安全性

請參閱

參考

BuildServiceHostUtilities 類別

Microsoft.TeamFoundation.Build.Config 命名空間