TeamFoundationBuildResourceService.QueryBuildServiceHosts Method
Queries for build service hosts by name.
Namespace: Microsoft.TeamFoundation.Build.Server
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
Public Function QueryBuildServiceHosts ( _
requestContext As TeamFoundationRequestContext, _
computer As String _
) As BuildServiceHostQueryResult
public BuildServiceHostQueryResult QueryBuildServiceHosts(
TeamFoundationRequestContext requestContext,
string computer
)
public:
BuildServiceHostQueryResult^ QueryBuildServiceHosts(
TeamFoundationRequestContext^ requestContext,
String^ computer
)
member QueryBuildServiceHosts :
requestContext:TeamFoundationRequestContext *
computer:string -> BuildServiceHostQueryResult
public function QueryBuildServiceHosts(
requestContext : TeamFoundationRequestContext,
computer : String
) : BuildServiceHostQueryResult
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
computer
Type: System.StringThe name of the desired service host, which typically corresponds to the computer name the service host is running on.
Return Value
Type: Microsoft.TeamFoundation.Build.Server.BuildServiceHostQueryResult
Returns BuildServiceHostQueryResult.
.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.