Gets an array of all build service hosts that are hosted on the specified computers.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
声明
Function QueryBuildServiceHosts ( _
    serviceHostName As String _
) As IBuildServiceHost()
IBuildServiceHost[] QueryBuildServiceHosts(
    string serviceHostName
)
array<IBuildServiceHost^>^ QueryBuildServiceHosts(
    String^ serviceHostName
)
abstract QueryBuildServiceHosts : 
        serviceHostName:string -> IBuildServiceHost[] 
function QueryBuildServiceHosts(
    serviceHostName : String
) : IBuildServiceHost[]
Parameters
- serviceHostName
 Type: System.String
 The name of the service host to match (may contain wild cards).
Return Value
Type: array<Microsoft.TeamFoundation.Build.Client.IBuildServiceHost[]
An array of build service hosts that are hosted by computers matching the input.
.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.