WorkHttpClientBase.GetPredefinedQueriesAsync 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.
Overloads
| GetPredefinedQueriesAsync(Guid, Object, CancellationToken) |
[Preview API] Retrieves the set of known queries |
| GetPredefinedQueriesAsync(String, Object, CancellationToken) |
[Preview API] Retrieves the set of known queries |
GetPredefinedQueriesAsync(Guid, Object, CancellationToken)
[Preview API] Retrieves the set of known queries
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.PredefinedQuery>> GetPredefinedQueriesAsync(Guid project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPredefinedQueriesAsync : Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.PredefinedQuery>>
override this.GetPredefinedQueriesAsync : Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.PredefinedQuery>>
Parameters
- project
- Guid
Project ID
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPredefinedQueriesAsync(String, Object, CancellationToken)
[Preview API] Retrieves the set of known queries
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.PredefinedQuery>> GetPredefinedQueriesAsync(string project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPredefinedQueriesAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.PredefinedQuery>>
override this.GetPredefinedQueriesAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.PredefinedQuery>>
Parameters
- project
- String
Project ID or project name
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.