Language

TaskAgentHttpClientBase.GetAgentPoolMaintenanceDefinitionsAsync Method

Definition

[Preview API]

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

Parameters

poolId
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to