AdministrationWebService4.AddBuildAgents Method

Adds build agents with the specified parameters to the system. The build agents that are added must have unique names throughout the containing service host. Agents may optionally be associated with a build controller when they are added to the system.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function AddBuildAgents ( _
    agents As List(Of BuildAgent) _
) As List(Of BuildAgent)
[WebMethodAttribute]
public List<BuildAgent> AddBuildAgents(
    List<BuildAgent> agents
)
[WebMethodAttribute]
public:
List<BuildAgent^>^ AddBuildAgents(
    List<BuildAgent^>^ agents
)
[<WebMethodAttribute>]
member AddBuildAgents : 
        agents:List<BuildAgent> -> List<BuildAgent> 
public function AddBuildAgents(
    agents : List<BuildAgent>
) : List<BuildAgent>

Parameters

Return Value

Type: System.Collections.Generic.List<BuildAgent>
The list of build agents added to the system.

.NET Framework Security

See Also

Reference

AdministrationWebService4 Class

Microsoft.TeamFoundation.Build.Server Namespace