AgentsController.GetAgentById Method
Get a specific build agent
Namespace: Microsoft.TeamFoundation.Build.Server.Rest
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<HttpGetAttribute> _
Public Function GetAgentById ( _
agentId As Integer _
) As BuildAgent
[HttpGetAttribute]
public BuildAgent GetAgentById(
int agentId
)
[HttpGetAttribute]
public:
BuildAgent^ GetAgentById(
int agentId
)
[<HttpGetAttribute>]
member GetAgentById :
agentId:int -> BuildAgent
public function GetAgentById(
agentId : int
) : BuildAgent
Parameters
- agentId
Type: System.Int32
Return Value
Type: BuildAgent
.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.