Edit

Share via


WorkItemTrackingHttpClientBase.GetRevisionAsync Method

Definition

Overloads

GetRevisionAsync(String, Int32, Int32, Nullable<WorkItemExpand>, Object, CancellationToken)

[Preview API] Returns a fully hydrated work item for the requested revision

GetRevisionAsync(Int32, Int32, Nullable<WorkItemExpand>, Object, CancellationToken)

[Preview API] Returns a fully hydrated work item for the requested revision

GetRevisionAsync(Guid, Int32, Int32, Nullable<WorkItemExpand>, Object, CancellationToken)

[Preview API] Returns a fully hydrated work item for the requested revision

GetRevisionAsync(String, Int32, Int32, Nullable<WorkItemExpand>, Object, CancellationToken)

[Preview API] Returns a fully hydrated work item for the requested revision

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> GetRevisionAsync (string project, int id, int revisionNumber, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRevisionAsync : string * int * int * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>
override this.GetRevisionAsync : string * int * int * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>

Parameters

project
String

Project ID or project name

id
Int32
revisionNumber
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetRevisionAsync(Int32, Int32, Nullable<WorkItemExpand>, Object, CancellationToken)

[Preview API] Returns a fully hydrated work item for the requested revision

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> GetRevisionAsync (int id, int revisionNumber, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRevisionAsync : int * int * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>
override this.GetRevisionAsync : int * int * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>

Parameters

id
Int32
revisionNumber
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetRevisionAsync(Guid, Int32, Int32, Nullable<WorkItemExpand>, Object, CancellationToken)

[Preview API] Returns a fully hydrated work item for the requested revision

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> GetRevisionAsync (Guid project, int id, int revisionNumber, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRevisionAsync : Guid * int * int * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>
override this.GetRevisionAsync : Guid * int * int * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>

Parameters

project
Guid

Project ID

id
Int32
revisionNumber
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to