Share via


TeamFoundationBuildResourceService.QueryBuildServiceHostsByUri Method

Queries for build service hosts by URI.

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

Syntax

'Declaration
Public Function QueryBuildServiceHostsByUri ( _
    requestContext As TeamFoundationRequestContext, _
    serviceHostUris As IList(Of String) _
) As BuildServiceHostQueryResult
public BuildServiceHostQueryResult QueryBuildServiceHostsByUri(
    TeamFoundationRequestContext requestContext,
    IList<string> serviceHostUris
)
public:
BuildServiceHostQueryResult^ QueryBuildServiceHostsByUri(
    TeamFoundationRequestContext^ requestContext, 
    IList<String^>^ serviceHostUris
)
member QueryBuildServiceHostsByUri : 
        requestContext:TeamFoundationRequestContext * 
        serviceHostUris:IList<string> -> BuildServiceHostQueryResult
public function QueryBuildServiceHostsByUri(
    requestContext : TeamFoundationRequestContext, 
    serviceHostUris : IList<String>
) : BuildServiceHostQueryResult

Parameters

Return Value

Type: Microsoft.TeamFoundation.Build.Server.BuildServiceHostQueryResult
A service host query result that contains the service hosts matching the URIs, or null if no service host was found with a particular URI, or the failures encountered. The number and order of the results will always match the serviceHostUris passed in.

.NET Framework Security

See Also

Reference

TeamFoundationBuildResourceService Class

Microsoft.TeamFoundation.Build.Server Namespace