IAgentReservationExtension.BeginReleaseAgent Method

Releases the agent associated with the specified request ID. Once the agent has been released it will be returned to a pool so that it may be used by another process or workflow.

Namespace:  Microsoft.TeamFoundation.Build.Workflow.Services
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)

Syntax

'Declaration
Function BeginReleaseAgent ( _
    reservationId As Integer, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
IAsyncResult BeginReleaseAgent(
    int reservationId,
    AsyncCallback callback,
    Object state
)
IAsyncResult^ BeginReleaseAgent(
    int reservationId, 
    AsyncCallback^ callback, 
    Object^ state
)
abstract BeginReleaseAgent : 
        reservationId:int * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult
function BeginReleaseAgent(
    reservationId : int, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • reservationId
    Type: System.Int32

    The ID of the agent reservation which should be released

Return Value

Type: System.IAsyncResult

.NET Framework Security

See Also

Reference

IAgentReservationExtension Interface

Microsoft.TeamFoundation.Build.Workflow.Services Namespace