Note: This API is now obsolete.
Gets or sets the build agent on which the requested build should be started.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
声明
<ObsoleteAttribute("This property has been deprecated. Please remove all references. Use the BuildController property instead.",  _
    True)> _
Property BuildAgent As IBuildAgent
    Get
    Set
[ObsoleteAttribute("This property has been deprecated. Please remove all references. Use the BuildController property instead.", 
    true)]
IBuildAgent BuildAgent { get; set; }
[ObsoleteAttribute(L"This property has been deprecated. Please remove all references. Use the BuildController property instead.", 
    true)]
property IBuildAgent^ BuildAgent {
    IBuildAgent^ get ();
    void set (IBuildAgent^ value);
}
[<ObsoleteAttribute("This property has been deprecated. Please remove all references. Use the BuildController property instead.", 
    true)>]
abstract BuildAgent : IBuildAgent with get, set
function get BuildAgent () : IBuildAgent
function set BuildAgent (value : IBuildAgent)
Property Value
Type: Microsoft.TeamFoundation.Build.Client.IBuildAgent
The build agent on which the requested build should be started.
.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.