AdministrationWebService.AddBuildAgents Method

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

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

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

AdministrationWebService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace