Share via


AdministrationWebService.QueryBuildAgentsByUri Method

Queries the list of build agents using the provided URIs. If a null or empty list is provided, all of the build agents to which the caller has the appropriate permissions will be returned.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryBuildAgentsByUri ( _
    agentUris As String() _
) As BuildAgentQueryResult2010
[WebMethodAttribute]
public BuildAgentQueryResult2010 QueryBuildAgentsByUri(
    string[] agentUris
)
[WebMethodAttribute]
public:
BuildAgentQueryResult2010^ QueryBuildAgentsByUri(
    array<String^>^ agentUris
)
[<WebMethodAttribute>]
member QueryBuildAgentsByUri : 
        agentUris:string[] -> BuildAgentQueryResult2010
public function QueryBuildAgentsByUri(
    agentUris : String[]
) : BuildAgentQueryResult2010

Parameters

  • agentUris
    Type: array<System.String[]

    The list of agents that should be queried.

Return Value

Type: Microsoft.TeamFoundation.Build.Server.Compatibility.BuildAgentQueryResult2010
A list of build agents queried to which the caller has appropriate permissions.

.NET Framework Security

See Also

Reference

AdministrationWebService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace