Adds build agents to the server. Notifications are asynchronously sent to the physical service host regarding the addition of any build agents.
Namespace:  Microsoft.TeamFoundation.Build.Server
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
Public Function AddBuildAgents ( _
    requestContext As TeamFoundationRequestContext, _
    agents As IList(Of BuildAgent) _
) As List(Of BuildAgent)
public List<BuildAgent> AddBuildAgents(
    TeamFoundationRequestContext requestContext,
    IList<BuildAgent> agents
)
public:
List<BuildAgent^>^ AddBuildAgents(
    TeamFoundationRequestContext^ requestContext, 
    IList<BuildAgent^>^ agents
)
member AddBuildAgents : 
        requestContext:TeamFoundationRequestContext * 
        agents:IList<BuildAgent> -> List<BuildAgent> 
public function AddBuildAgents(
    requestContext : TeamFoundationRequestContext, 
    agents : IList<BuildAgent>
) : List<BuildAgent>
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- agents 
 Type: System.Collections.Generic.IList<BuildAgent>- The build agents to add. 
Return Value
Type: System.Collections.Generic.List<BuildAgent>
A list of build agents that were added.
.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.