Partilhar via


IBuildServiceHost.FindBuildAgent Method

Gets the build agent that has the specified name and that is associated with the specified build controller.

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

Syntax

'Declaration
Function FindBuildAgent ( _
    controller As String, _
    name As String _
) As IBuildAgent
IBuildAgent FindBuildAgent(
    string controller,
    string name
)
IBuildAgent^ FindBuildAgent(
    String^ controller, 
    String^ name
)
abstract FindBuildAgent : 
        controller:string * 
        name:string -> IBuildAgent
function FindBuildAgent(
    controller : String, 
    name : String
) : IBuildAgent

Parameters

  • controller
    Type: System.String

    The build controller that is associated with the desired build agent.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildAgent
The build agent that has the specified name and that is associated with the specified build controller.

.NET Framework Security

See Also

Reference

IBuildServiceHost Interface

Microsoft.TeamFoundation.Build.Client Namespace