Note: This API is now obsolete.
Creates a new build agent owned by the build server.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
声明
<ObsoleteAttribute("This method has been deprecated. Please remove all references.",  _
    True)> _
Function CreateBuildAgent ( _
    teamProject As String _
) As IBuildAgent
[ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    true)]
IBuildAgent CreateBuildAgent(
    string teamProject
)
[ObsoleteAttribute(L"This method has been deprecated. Please remove all references.", 
    true)]
IBuildAgent^ CreateBuildAgent(
    String^ teamProject
)
[<ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    true)>]
abstract CreateBuildAgent : 
        teamProject:string -> IBuildAgent 
function CreateBuildAgent(
    teamProject : String
) : IBuildAgent
Parameters
- teamProject
 Type: System.String
 The team project under which the build agent will be created.
Return Value
Type: Microsoft.TeamFoundation.Build.Client.IBuildAgent
The new build agent.
.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.