TaskAgentHttpClientBase.GetAgentPoolsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Preview API]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPool>> GetAgentPoolsAsync(string poolName = null, System.Collections.Generic.IEnumerable<string> properties = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolType> poolType = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolActionFilter> actionFilter = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAgentPoolsAsync : string * seq<string> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolType> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPool>>
override this.GetAgentPoolsAsync : string * seq<string> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolType> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPoolActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentPool>>
Parameters
- poolName
- String
- properties
- IEnumerable<String>
- poolType
- Nullable<TaskAgentPoolType>
- actionFilter
- Nullable<TaskAgentPoolActionFilter>
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.