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.Int32The ID of the agent reservation which should be released
- callback
Type: System.AsyncCallback
- state
Type: System.Object
Return Value
Type: System.IAsyncResult
.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.