Edit

GitHttpClientBase.CreateLikeAsync Method

Definition

Overloads

CreateLikeAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Add a like on a comment.

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

Parameters

repositoryId
Guid

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

pullRequestId
Int32

ID of the pull request.

threadId
Int32

The ID of the thread that contains the comment.

commentId
Int32

The ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateLikeAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Add a like on a comment.

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

Parameters

repositoryId
String

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

pullRequestId
Int32

ID of the pull request.

threadId
Int32

The ID of the thread that contains the comment.

commentId
Int32

The ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateLikeAsync(Guid, Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Add a like on a comment.

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

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

The ID of the thread that contains the comment.

commentId
Int32

The ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

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

[Preview API] Add a like on a comment.

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

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

The ID of the thread that contains the comment.

commentId
Int32

The ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

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

[Preview API] Add a like on a comment.

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

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

The ID of the thread that contains the comment.

commentId
Int32

The ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateLikeAsync(String, String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Add a like on a comment.

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

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

The ID of the thread that contains the comment.

commentId
Int32

The ID of the comment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to