GitHttpClientBase.UpdateCommentAsync 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
UpdateCommentAsync(Comment, Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Update a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> UpdateCommentAsync(Microsoft.TeamFoundation.SourceControl.WebApi.Comment comment, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
Parameters
- comment
- Comment
The comment content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateCommentAsync(Comment, String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Update a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> UpdateCommentAsync(Microsoft.TeamFoundation.SourceControl.WebApi.Comment comment, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
Parameters
- comment
- Comment
The comment content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateCommentAsync(Comment, Guid, Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Update a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> UpdateCommentAsync(Microsoft.TeamFoundation.SourceControl.WebApi.Comment comment, Guid project, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * Guid * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * Guid * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
Parameters
- comment
- Comment
The comment content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateCommentAsync(Comment, Guid, String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Update a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> UpdateCommentAsync(Microsoft.TeamFoundation.SourceControl.WebApi.Comment comment, Guid project, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * Guid * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * Guid * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
Parameters
- comment
- Comment
The comment content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateCommentAsync(Comment, String, Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Update a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> UpdateCommentAsync(Microsoft.TeamFoundation.SourceControl.WebApi.Comment comment, string project, Guid repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * string * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * string * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
Parameters
- comment
- Comment
The comment content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateCommentAsync(Comment, String, String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Update a comment associated with a specific thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment> UpdateCommentAsync(Microsoft.TeamFoundation.SourceControl.WebApi.Comment comment, string project, string repositoryId, int pullRequestId, int threadId, int commentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * string * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
override this.UpdateCommentAsync : Microsoft.TeamFoundation.SourceControl.WebApi.Comment * string * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.Comment>
Parameters
- comment
- Comment
The comment content that should be updated.
- 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 to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.