GitHttpClientBase.DeleteCommentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| DeleteCommentAsync(String, String, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a comment associated with a specific thread in a pull request. |
| DeleteCommentAsync(String, Guid, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a comment associated with a specific thread in a pull request. |
| DeleteCommentAsync(Guid, String, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a comment associated with a specific thread in a pull request. |
| DeleteCommentAsync(Guid, Guid, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a comment associated with a specific thread in a pull request. |
| DeleteCommentAsync(Guid, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a comment associated with a specific thread in a pull request. |
| DeleteCommentAsync(String, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a comment associated with a specific thread in a pull request. |
DeleteCommentAsync(String, String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task DeleteCommentAsync(string project, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteCommentAsync : string * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteCommentAsync : 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
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
DeleteCommentAsync(String, Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task DeleteCommentAsync(string project, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteCommentAsync : string * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteCommentAsync : 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
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
DeleteCommentAsync(Guid, String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task DeleteCommentAsync(Guid project, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteCommentAsync : Guid * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteCommentAsync : 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
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
DeleteCommentAsync(Guid, Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task DeleteCommentAsync(Guid project, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteCommentAsync : Guid * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteCommentAsync : 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
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
DeleteCommentAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task DeleteCommentAsync(Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteCommentAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteCommentAsync : 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
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
DeleteCommentAsync(String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task DeleteCommentAsync(string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteCommentAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteCommentAsync : 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
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.