This documentation is archived and is not being maintained.
IBuildServiceHost::CreateBuildAgent Method (String, String, IBuildController)
Visual Studio 2013
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)
IBuildAgent^ CreateBuildAgent( String^ name, String^ buildDirectory, IBuildController^ buildController )
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.
- buildController
- Type: Microsoft.TeamFoundation.Build.Client::IBuildController
The build controller with which to associate the agent.
It should be noted that IBuildController is new to Visual Studio 2010 ALM.
- 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.
Show: