Edit

Share via


WorkItemTrackingHttpClientBase.QueryByIdAsync Method

Definition

Overloads

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

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

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

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

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

Gets the results of the query given the query ID.

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

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

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

Gets the results of the query given the query ID.

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

Gets the results of the query given the query ID.

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

Gets the results of the query given the query ID.

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

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

QueryByIdAsync(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<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (string project, Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.QueryByIdAsync : string * Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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

QueryByIdAsync(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<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (Guid project, Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.QueryByIdAsync : Guid * Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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

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

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (string project, Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryByIdAsync : string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>
override this.QueryByIdAsync : string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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

QueryByIdAsync(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<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (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.QueryByIdAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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

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

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (Guid project, Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryByIdAsync : Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>
override this.QueryByIdAsync : Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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

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

Gets the results of the query given the query ID.

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

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

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

Gets the results of the query given the query ID.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (Guid id, Nullable<bool> timePrecision = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryByIdAsync : Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>
override this.QueryByIdAsync : Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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

QueryByIdAsync(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<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult> QueryByIdAsync (Guid id, Nullable<bool> timePrecision = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.QueryByIdAsync : Guid * Nullable<bool> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemQueryResult>

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