Поделиться через


TeamFoundationBuildResourceService.AddBuildAgents Method

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

Return Value

Type: System.Collections.Generic.List<BuildAgent>
A list of build agents that were added.

.NET Framework Security

See Also

Reference

TeamFoundationBuildResourceService Class

Microsoft.TeamFoundation.Build.Server Namespace