Share via


AdministrationWebService4.UpdateBuildAgents Method

Updates build agents using the specified update structure to determine which fields are to be updated on the agent. The only required field is the URI for update which specifies the agent that should be updated in the call. No results are returned. Therefore, a successful update is indirectly signaled by the lack of an exception being thrown.

Namespace:  Microsoft.TeamFoundation.Build.Server
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)

Syntax

'Declaration
<WebMethodAttribute> _
<ClientServiceMethodAttribute(AsyncPattern := True)> _
Public Sub UpdateBuildAgents ( _
    updates As List(Of BuildAgentUpdateOptions) _
)
[WebMethodAttribute]
[ClientServiceMethodAttribute(AsyncPattern = true)]
public void UpdateBuildAgents(
    List<BuildAgentUpdateOptions> updates
)
[WebMethodAttribute]
[ClientServiceMethodAttribute(AsyncPattern = true)]
public:
void UpdateBuildAgents(
    List<BuildAgentUpdateOptions^>^ updates
)
[<WebMethodAttribute>]
[<ClientServiceMethodAttribute(AsyncPattern = true)>]
member UpdateBuildAgents : 
        updates:List<BuildAgentUpdateOptions> -> unit
public function UpdateBuildAgents(
    updates : List<BuildAgentUpdateOptions>
)

Parameters

.NET Framework Security

See Also

Reference

AdministrationWebService4 Class

Microsoft.TeamFoundation.Build.Server Namespace