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
updates
Type: System.Collections.Generic.List<BuildAgentUpdateOptions>The updates that should be applied to the server.
.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.