Edit

Share via


GitHttpClientBase.CreateCommentAsync Method

Definition

Overloads

CreateCommentAsync(Comment, String, Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

CreateCommentAsync(Comment, String, String, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

CreateCommentAsync(Comment, Guid, String, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

CreateCommentAsync(Comment, Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

CreateCommentAsync(Comment, String, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

CreateCommentAsync(Comment, Guid, Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

CreateCommentAsync(Comment, String, Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

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

Parameters

comment
Comment

The comment to create.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateCommentAsync(Comment, String, String, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

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

Parameters

comment
Comment

The comment to create.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateCommentAsync(Comment, Guid, String, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

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

Parameters

comment
Comment

The comment to create.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateCommentAsync(Comment, Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

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

Parameters

comment
Comment

The comment to create.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateCommentAsync(Comment, String, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

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

Parameters

comment
Comment

The comment to create.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateCommentAsync(Comment, Guid, Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Create a comment on a specific thread in a pull request.

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

Parameters

comment
Comment

The comment to create.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to