WorkItemTrackingHttpClientBase.GetCommentAsync 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
GetCommentAsync(Int32, Int32, Object, CancellationToken) |
[Preview API] Gets a comment for a work item at the specified revision. |
GetCommentAsync(Guid, Int32, Int32, Object, CancellationToken) |
[Preview API] Gets a comment for a work item at the specified revision. |
GetCommentAsync(String, Int32, Int32, Object, CancellationToken) |
[Preview API] Gets a comment for a work item at the specified revision. |
GetCommentAsync(Int32, Int32, Object, CancellationToken)
[Preview API] Gets a comment for a work item at the specified revision.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment> GetCommentAsync (int id, int revision, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment>
override this.GetCommentAsync : int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment>
Parameters
- id
- Int32
Work item id
- revision
- Int32
Revision for which the comment need to be fetched
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetCommentAsync(Guid, Int32, Int32, Object, CancellationToken)
[Preview API] Gets a comment for a work item at the specified revision.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment> GetCommentAsync (Guid project, int id, int revision, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment>
override this.GetCommentAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment>
Parameters
- project
- Guid
Project ID
- id
- Int32
Work item id
- revision
- Int32
Revision for which the comment need to be fetched
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetCommentAsync(String, Int32, Int32, Object, CancellationToken)
[Preview API] Gets a comment for a work item at the specified revision.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment> GetCommentAsync (string project, int id, int revision, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment>
override this.GetCommentAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComment>
Parameters
- project
- String
Project ID or project name
- id
- Int32
Work item id
- revision
- Int32
Revision for which the comment need to be fetched
- 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