Edit

TaskAgentHttpClientBase.GetAgentPoolAsync Method

Definition

[Preview API]

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPool> GetAgentPoolAsync(int poolId, System.Collections.Generic.IEnumerable<string> properties = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolActionFilter> actionFilter = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAgentPoolAsync : int * seq<string> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPool>
override this.GetAgentPoolAsync : int * seq<string> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPool>

Parameters

poolId
Int32
properties
IEnumerable<String>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to