Share via


AdministrationWebService.QueryBuildAgents Method

Queries the list of build agents that match the provided specifications. The output list result sets will match up to the index of the spec that produced the result.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryBuildAgents ( _
    agentSpecs As BuildAgentSpec2010() _
) As List(Of BuildAgentQueryResult2010)
[WebMethodAttribute]
public List<BuildAgentQueryResult2010> QueryBuildAgents(
    BuildAgentSpec2010[] agentSpecs
)
[WebMethodAttribute]
public:
List<BuildAgentQueryResult2010^>^ QueryBuildAgents(
    array<BuildAgentSpec2010^>^ agentSpecs
)
[<WebMethodAttribute>]
member QueryBuildAgents : 
        agentSpecs:BuildAgentSpec2010[] -> List<BuildAgentQueryResult2010> 
public function QueryBuildAgents(
    agentSpecs : BuildAgentSpec2010[]
) : List<BuildAgentQueryResult2010>

Parameters

Return Value

Type: System.Collections.Generic.List<BuildAgentQueryResult2010>
A list of build agent results.

.NET Framework Security

See Also

Reference

AdministrationWebService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace