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
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function QueryBuildAgents ( _
agentSpecs As BuildAgentSpec() _
) As StreamingCollection(Of BuildAgentQueryResult)
[WebMethodAttribute]
public StreamingCollection<BuildAgentQueryResult> QueryBuildAgents(
BuildAgentSpec[] agentSpecs
)
[WebMethodAttribute]
public:
StreamingCollection<BuildAgentQueryResult^>^ QueryBuildAgents(
array<BuildAgentSpec^>^ agentSpecs
)
[<WebMethodAttribute>]
member QueryBuildAgents :
agentSpecs:BuildAgentSpec[] -> StreamingCollection<BuildAgentQueryResult>
public function QueryBuildAgents(
agentSpecs : BuildAgentSpec[]
) : StreamingCollection<BuildAgentQueryResult>
Parameters
agentSpecs
Type: array<Microsoft.TeamFoundation.Build.Server.BuildAgentSpec[]The input specifications for querying the agents on the server.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<BuildAgentQueryResult>
A list of build agent results.
.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.