WorkItemTrackingHttpClientBase.GetRevisionAsync 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
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
- expand
- Nullable<WorkItemExpand>
- 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
- expand
- Nullable<WorkItemExpand>
- 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
- expand
- Nullable<WorkItemExpand>
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for