Edit

Share via


WorkItemTrackingHttpClientBase.GetCommentAsync Method

Definition

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