WorkItemTrackingHttpClientBase.GetCommentsAsync 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
GetCommentsAsync(Int32, Nullable<Int32>, Nullable<Int32>, Nullable<CommentSortOrder>, Object, CancellationToken) |
[Preview API] Gets the specified number of comments for a work item from the specified revision. |
GetCommentsAsync(Guid, Int32, Nullable<Int32>, Nullable<Int32>, Nullable<CommentSortOrder>, Object, CancellationToken) |
[Preview API] Gets the specified number of comments for a work item from the specified revision. |
GetCommentsAsync(String, Int32, Nullable<Int32>, Nullable<Int32>, Nullable<CommentSortOrder>, Object, CancellationToken) |
[Preview API] Gets the specified number of comments for a work item from the specified revision. |
GetCommentsAsync(Int32, Nullable<Int32>, Nullable<Int32>, Nullable<CommentSortOrder>, Object, CancellationToken)
[Preview API] Gets the specified number of comments for a work item from the specified revision.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments> GetCommentsAsync (int id, Nullable<int> fromRevision = null, Nullable<int> top = null, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> order = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : int * Nullable<int> * Nullable<int> * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments>
override this.GetCommentsAsync : int * Nullable<int> * Nullable<int> * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments>
Parameters
- id
- Int32
Work item id
- order
- Nullable<CommentSortOrder>
Ascending or descending by revision id (default is ascending)
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetCommentsAsync(Guid, Int32, Nullable<Int32>, Nullable<Int32>, Nullable<CommentSortOrder>, Object, CancellationToken)
[Preview API] Gets the specified number of comments for a work item from the specified revision.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments> GetCommentsAsync (Guid project, int id, Nullable<int> fromRevision = null, Nullable<int> top = null, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> order = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : Guid * int * Nullable<int> * Nullable<int> * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments>
override this.GetCommentsAsync : Guid * int * Nullable<int> * Nullable<int> * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments>
Parameters
- project
- Guid
Project ID
- id
- Int32
Work item id
- order
- Nullable<CommentSortOrder>
Ascending or descending by revision id (default is ascending)
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetCommentsAsync(String, Int32, Nullable<Int32>, Nullable<Int32>, Nullable<CommentSortOrder>, Object, CancellationToken)
[Preview API] Gets the specified number of comments for a work item from the specified revision.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments> GetCommentsAsync (string project, int id, Nullable<int> fromRevision = null, Nullable<int> top = null, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> order = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : string * int * Nullable<int> * Nullable<int> * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments>
override this.GetCommentsAsync : string * int * Nullable<int> * Nullable<int> * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.CommentSortOrder> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemComments>
Parameters
- project
- String
Project ID or project name
- id
- Int32
Work item id
- order
- Nullable<CommentSortOrder>
Ascending or descending by revision id (default is ascending)
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.