TeamFoundationBuildResourceService.UpdateBuildAgents Method
Updates a list of build agents. Notifications are asynchronously sent to the physical service host regarding the modification of any build agents, and a BIS event is fired if the status of the agent changes.
Namespace: Microsoft.TeamFoundation.Build.Server
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
Public Sub UpdateBuildAgents ( _
requestContext As TeamFoundationRequestContext, _
updates As IList(Of BuildAgentUpdateOptions), _
canUpdateElastic As Boolean, _
fromDev10Client As Boolean _
)
public void UpdateBuildAgents(
TeamFoundationRequestContext requestContext,
IList<BuildAgentUpdateOptions> updates,
bool canUpdateElastic,
bool fromDev10Client
)
public:
void UpdateBuildAgents(
TeamFoundationRequestContext^ requestContext,
IList<BuildAgentUpdateOptions^>^ updates,
bool canUpdateElastic,
bool fromDev10Client
)
member UpdateBuildAgents :
requestContext:TeamFoundationRequestContext *
updates:IList<BuildAgentUpdateOptions> *
canUpdateElastic:bool *
fromDev10Client:bool -> unit
public function UpdateBuildAgents(
requestContext : TeamFoundationRequestContext,
updates : IList<BuildAgentUpdateOptions>,
canUpdateElastic : boolean,
fromDev10Client : boolean
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
updates
Type: System.Collections.Generic.IList<BuildAgentUpdateOptions>The list of agent update options. Each specifies the agent to be updated, the fields to be updated, and the new values for those fields.
- canUpdateElastic
Type: System.Boolean
- fromDev10Client
Type: System.Boolean
.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.