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
agents
Type: System.Collections.Generic.List<BuildAgent2010>The list of agents that should be added to the system.
Return Value
Type: System.Collections.Generic.List<BuildAgent2010>
The list of build agents added to the system.
.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.
See Also
Reference
AdministrationWebService Class
Microsoft.TeamFoundation.Build.Server.Compatibility Namespace