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
agentSpecs
Type: array<Microsoft.TeamFoundation.Build.Server.Compatibility.BuildAgentSpec2010[]The input specifications for querying the agents on the server.
Return Value
Type: System.Collections.Generic.List<BuildAgentQueryResult2010>
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.
See Also
Reference
AdministrationWebService Class
Microsoft.TeamFoundation.Build.Server.Compatibility Namespace