Compartir a través de


IBuildServiceHost.CreateBuildAgent Method (String, String)

Creates a build agent that is associated with the current service host and adds it to the collection of agents.

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

Syntax

'Declaración
Function CreateBuildAgent ( _
    name As String, _
    buildDirectory As String _
) As IBuildAgent
IBuildAgent CreateBuildAgent(
    string name,
    string buildDirectory
)
IBuildAgent^ CreateBuildAgent(
    String^ name, 
    String^ buildDirectory
)
abstract CreateBuildAgent : 
        name:string * 
        buildDirectory:string -> IBuildAgent 
function CreateBuildAgent(
    name : String, 
    buildDirectory : String
) : IBuildAgent

Parameters

  • buildDirectory
    Type: System.String
    The build directory to use when builds are run on the agent.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildAgent
The new IBuildAgent instance.

.NET Framework Security

See Also

Reference

IBuildServiceHost Interface

CreateBuildAgent Overload

Microsoft.TeamFoundation.Build.Client Namespace