Edit

Share via


WorkItemTrackingHttpClientBase.GetQueryResultCountAsync Method

Definition

Overloads

GetQueryResultCountAsync(String, Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

GetQueryResultCountAsync(Guid, Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

GetQueryResultCountAsync(TeamContext, Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

GetQueryResultCountAsync(String, Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

GetQueryResultCountAsync(Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

GetQueryResultCountAsync(Guid, Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

GetQueryResultCountAsync(TeamContext, Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

GetQueryResultCountAsync(Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

GetQueryResultCountAsync(String, Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (string project, Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetQueryResultCountAsync : string * Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

project
String

Project ID or project name

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

top
Nullable<Int32>

The max number of results to return.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(Guid, Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (Guid project, Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetQueryResultCountAsync : Guid * Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

project
Guid

Project ID

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

top
Nullable<Int32>

The max number of results to return.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(TeamContext, Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetQueryResultCountAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

teamContext
TeamContext

The team context for the operation

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

top
Nullable<Int32>

The max number of results to return.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(String, Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (string project, Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetQueryResultCountAsync : string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.GetQueryResultCountAsync : string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

project
String

Project ID or project name

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(Guid, Nullable<Boolean>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetQueryResultCountAsync : Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

top
Nullable<Int32>

The max number of results to return.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(Guid, Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (Guid project, Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetQueryResultCountAsync : Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.GetQueryResultCountAsync : Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

project
Guid

Project ID

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(TeamContext, Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetQueryResultCountAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.GetQueryResultCountAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

teamContext
TeamContext

The team context for the operation

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetQueryResultCountAsync(Guid, Nullable<Boolean>, Object, CancellationToken)

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<int> GetQueryResultCountAsync (Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetQueryResultCountAsync : Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.GetQueryResultCountAsync : Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

id
Guid

The query ID.

timePrecision
Nullable<Boolean>

Whether or not to use time precision.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to