Controller to handle all REST calls against build agents
Inheritance Hierarchy
System.Object
  System.Web.Http.ApiController
    Microsoft.TeamFoundation.Framework.Server.TfsApiController
      Microsoft.TeamFoundation.Build.Server.Rest.AgentsController
Namespace:  Microsoft.TeamFoundation.Build.Server.Rest
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<ControllerApiVersionAttribute()> _
<VersionedApiControllerCustomNameAttribute(Area := "Build", ResourceName := "Agents")> _
Public Class AgentsController _
    Inherits TfsApiController
[ControllerApiVersionAttribute()]
[VersionedApiControllerCustomNameAttribute(Area = "Build", ResourceName = "Agents")]
public class AgentsController : TfsApiController
[ControllerApiVersionAttribute()]
[VersionedApiControllerCustomNameAttribute(Area = L"Build", ResourceName = L"Agents")]
public ref class AgentsController : public TfsApiController
[<ControllerApiVersionAttribute()>]
[<VersionedApiControllerCustomNameAttribute(Area = "Build", ResourceName = "Agents")>]
type AgentsController =  
    class 
        inherit TfsApiController 
    end
public class AgentsController extends TfsApiController
The AgentsController type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | AgentsController | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | BaseHttpExceptions | (Inherited from TfsApiController.) | 
| .gif) | Configuration | (Inherited from ApiController.) | 
| .gif) | ControllerContext | (Inherited from ApiController.) | 
| .gif) | HttpExceptions | (Overrides TfsApiController.HttpExceptions.) | 
| .gif) | ModelState | (Inherited from ApiController.) | 
| .gif) | Request | (Inherited from ApiController.) | 
| .gif) | RequestContext | The Setter is only for Unit testing purposes (Inherited from TfsApiController.) | 
| .gif) | TraceArea | (Overrides TfsApiController.TraceArea.) | 
| .gif) | Url | (Inherited from ApiController.) | 
| .gif) | User | (Inherited from ApiController.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | DeleteAgentById | Delete a specific build agent | 
| .gif) | Dispose() | (Inherited from ApiController.) | 
| .gif) | Dispose(Boolean) | (Inherited from ApiController.) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | ExecuteAsync | (Inherited from ApiController.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetAgentById | Get a specific build agent | 
| .gif) | GetAgents | Get build agents | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | Initialize | (Inherited from TfsApiController.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Extension Methods
| Name | Description | |
|---|---|---|
| .gif) | GenerateResponse | (Defined by TfsApiControllerExtensions.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.