Поделиться через


IBuildServiceHost.CreateBuildAgent Method (String, String, IBuildController)

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

'Declaration
Function CreateBuildAgent ( _
    name As String, _
    buildDirectory As String, _
    buildController As IBuildController _
) As IBuildAgent
IBuildAgent CreateBuildAgent(
    string name,
    string buildDirectory,
    IBuildController buildController
)
IBuildAgent^ CreateBuildAgent(
    String^ name, 
    String^ buildDirectory, 
    IBuildController^ buildController
)
abstract CreateBuildAgent : 
        name:string * 
        buildDirectory:string * 
        buildController:IBuildController -> IBuildAgent
function CreateBuildAgent(
    name : String, 
    buildDirectory : String, 
    buildController : IBuildController
) : IBuildAgent

Parameters

  • name
    Type: System.String

    The name by which the agent should be referenced.

  • 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.

Remarks

It should be noted that IBuildController is new to Visual Studio 2010 ALM.

.NET Framework Security

See Also

Reference

IBuildServiceHost Interface

CreateBuildAgent Overload

Microsoft.TeamFoundation.Build.Client Namespace