GitHttpClientBase.CreateThreadAsync 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
| CreateThreadAsync(GitPullRequestCommentThread, String, String, Int32, Object, CancellationToken) |
[Preview API] Create a thread in a pull request. |
| CreateThreadAsync(GitPullRequestCommentThread, Guid, String, Int32, Object, CancellationToken) |
[Preview API] Create a thread in a pull request. |
| CreateThreadAsync(GitPullRequestCommentThread, String, Guid, Int32, Object, CancellationToken) |
[Preview API] Create a thread in a pull request. |
| CreateThreadAsync(GitPullRequestCommentThread, String, Int32, Object, CancellationToken) |
[Preview API] Create a thread in a pull request. |
| CreateThreadAsync(GitPullRequestCommentThread, Guid, Int32, Object, CancellationToken) |
[Preview API] Create a thread in a pull request. |
| CreateThreadAsync(GitPullRequestCommentThread, Guid, Guid, Int32, Object, CancellationToken) |
[Preview API] Create a thread in a pull request. |
CreateThreadAsync(GitPullRequestCommentThread, String, String, Int32, Object, CancellationToken)
[Preview API] Create a thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread> CreateThreadAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread commentThread, string project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
override this.CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
Parameters
- commentThread
- GitPullRequestCommentThread
The thread to create. Thread must contain at least one comment.
- project
- String
Project ID or project name
- repositoryId
- String
Repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateThreadAsync(GitPullRequestCommentThread, Guid, String, Int32, Object, CancellationToken)
[Preview API] Create a thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread> CreateThreadAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread commentThread, Guid project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
override this.CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
Parameters
- commentThread
- GitPullRequestCommentThread
The thread to create. Thread must contain at least one comment.
- project
- Guid
Project ID
- repositoryId
- String
Repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateThreadAsync(GitPullRequestCommentThread, String, Guid, Int32, Object, CancellationToken)
[Preview API] Create a thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread> CreateThreadAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread commentThread, string project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
override this.CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
Parameters
- commentThread
- GitPullRequestCommentThread
The thread to create. Thread must contain at least one comment.
- project
- String
Project ID or project name
- repositoryId
- Guid
Repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateThreadAsync(GitPullRequestCommentThread, String, Int32, Object, CancellationToken)
[Preview API] Create a thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread> CreateThreadAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread commentThread, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
override this.CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
Parameters
- commentThread
- GitPullRequestCommentThread
The thread to create. Thread must contain at least one comment.
- repositoryId
- String
Repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateThreadAsync(GitPullRequestCommentThread, Guid, Int32, Object, CancellationToken)
[Preview API] Create a thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread> CreateThreadAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread commentThread, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
override this.CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
Parameters
- commentThread
- GitPullRequestCommentThread
The thread to create. Thread must contain at least one comment.
- repositoryId
- Guid
Repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateThreadAsync(GitPullRequestCommentThread, Guid, Guid, Int32, Object, CancellationToken)
[Preview API] Create a thread in a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread> CreateThreadAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread commentThread, Guid project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
override this.CreateThreadAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>
Parameters
- commentThread
- GitPullRequestCommentThread
The thread to create. Thread must contain at least one comment.
- project
- Guid
Project ID
- repositoryId
- Guid
Repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.