Language
Edit

GitHttpClientBase.GetCommentAsync Method

Definition

Overloads

Name Description
GetCommentAsync(String, Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

GetCommentAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

GetCommentAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

GetCommentAsync(Guid, Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

GetCommentAsync(Guid, String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

GetCommentAsync(String, String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

GetCommentAsync(String, Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> GetCommentAsync(string project, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : string * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.GetCommentAsync : string * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>

Parameters

project
String

Project ID or project name

repositoryId
Guid

The repository ID of the pull request's target branch.

pullRequestId
Int32

ID of the pull request.

threadId
Int32

ID of the thread that the desired comment is in.

commentId
Int32

ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> GetCommentAsync(Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.GetCommentAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>

Parameters

repositoryId
Guid

The repository ID of the pull request's target branch.

pullRequestId
Int32

ID of the pull request.

threadId
Int32

ID of the thread that the desired comment is in.

commentId
Int32

ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> GetCommentAsync(string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.GetCommentAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>

Parameters

repositoryId
String

The repository ID of the pull request's target branch.

pullRequestId
Int32

ID of the pull request.

threadId
Int32

ID of the thread that the desired comment is in.

commentId
Int32

ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentAsync(Guid, Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> GetCommentAsync(Guid project, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : Guid * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.GetCommentAsync : Guid * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>

Parameters

project
Guid

Project ID

repositoryId
Guid

The repository ID of the pull request's target branch.

pullRequestId
Int32

ID of the pull request.

threadId
Int32

ID of the thread that the desired comment is in.

commentId
Int32

ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentAsync(Guid, String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> GetCommentAsync(Guid project, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : Guid * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.GetCommentAsync : Guid * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>

Parameters

project
Guid

Project ID

repositoryId
String

The repository ID of the pull request's target branch.

pullRequestId
Int32

ID of the pull request.

threadId
Int32

ID of the thread that the desired comment is in.

commentId
Int32

ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentAsync(String, String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Retrieve a comment associated with a specific thread in a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> GetCommentAsync(string project, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentAsync : string * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.GetCommentAsync : string * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>

Parameters

project
String

Project ID or project name

repositoryId
String

The repository ID of the pull request's target branch.

pullRequestId
Int32

ID of the pull request.

threadId
Int32

ID of the thread that the desired comment is in.

commentId
Int32

ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to