Edit

GitHttpClientBase.GetCommentsAsync Method

Definition

Overloads

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

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

GetCommentsAsync(String, String, Int32, Int32, Object, CancellationToken)

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

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

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

GetCommentsAsync(Guid, Int32, Int32, Object, CancellationToken)

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

GetCommentsAsync(String, Int32, Int32, Object, CancellationToken)

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

GetCommentsAsync(Guid, Guid, Int32, Int32, Object, CancellationToken)

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

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

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

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>> GetCommentsAsync(string project, Guid repositoryId, int pullRequestId, int threadId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : string * Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>>
override this.GetCommentsAsync : string * Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentsAsync(String, String, Int32, Int32, Object, CancellationToken)

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

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>> GetCommentsAsync(string project, string repositoryId, int pullRequestId, int threadId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : string * string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>>
override this.GetCommentsAsync : string * string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

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

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

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>> GetCommentsAsync(Guid project, string repositoryId, int pullRequestId, int threadId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : Guid * string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>>
override this.GetCommentsAsync : Guid * string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentsAsync(Guid, Int32, Int32, Object, CancellationToken)

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

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>> GetCommentsAsync(Guid repositoryId, int pullRequestId, int threadId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>>
override this.GetCommentsAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentsAsync(String, Int32, Int32, Object, CancellationToken)

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

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>> GetCommentsAsync(string repositoryId, int pullRequestId, int threadId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>>
override this.GetCommentsAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommentsAsync(Guid, Guid, Int32, Int32, Object, CancellationToken)

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

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>> GetCommentsAsync(Guid project, Guid repositoryId, int pullRequestId, int threadId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommentsAsync : Guid * Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>>
override this.GetCommentsAsync : Guid * Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to