Language

TaskAgentHttpClientBase.GetAgentPoolMaintenanceJobsAsync Method

Definition

[Preview API]

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolMaintenanceJob>> GetAgentPoolMaintenanceJobsAsync(int poolId, Nullable<int> definitionId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAgentPoolMaintenanceJobsAsync : int * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolMaintenanceJob>>
override this.GetAgentPoolMaintenanceJobsAsync : int * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolMaintenanceJob>>

Parameters

poolId
Int32
definitionId
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to