Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Changes the service account for the currently registered service host.
If another account is used to authenticate against TFS, use UpdateAuthenticatingAccount.
Namespace: Microsoft.TeamFoundation.Build.Config
Assembly: Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)
Syntax
'Declaration
Public Shared Sub UpdateBuildServiceAccount ( _
userName As String, _
password As String _
)
public static void UpdateBuildServiceAccount(
string userName,
string password
)
public:
static void UpdateBuildServiceAccount(
String^ userName,
String^ password
)
static member UpdateBuildServiceAccount :
userName:string *
password:string -> unit
public static function UpdateBuildServiceAccount(
userName : String,
password : String
)
Parameters
userName
Type: System.StringThe service account to use for the service host. If null, Network Service will be used.
password
Type: System.StringThe password for the service account.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.