GitHttpClientBase.GetThreadsAsync 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
| GetThreadsAsync(String, String, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve all threads in a pull request. |
| GetThreadsAsync(Guid, String, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve all threads in a pull request. |
| GetThreadsAsync(String, Guid, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve all threads in a pull request. |
| GetThreadsAsync(String, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve all threads in a pull request. |
| GetThreadsAsync(Guid, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve all threads in a pull request. |
| GetThreadsAsync(Guid, Guid, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve all threads in a pull request. |
GetThreadsAsync(String, String, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
[Preview API] Retrieve all threads in a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>> GetThreadsAsync(string project, string repositoryId, int pullRequestId, Nullable<int> iteration = null, Nullable<int> baseIteration = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetThreadsAsync : string * string * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
override this.GetThreadsAsync : string * string * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
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.
If specified, thread positions will be tracked using this iteration as the right side of the diff.
If specified, thread positions will be tracked using this iteration as the left side of the diff.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetThreadsAsync(Guid, String, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
[Preview API] Retrieve all threads in a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>> GetThreadsAsync(Guid project, string repositoryId, int pullRequestId, Nullable<int> iteration = null, Nullable<int> baseIteration = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetThreadsAsync : Guid * string * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
override this.GetThreadsAsync : Guid * string * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
Parameters
- project
- Guid
Project ID
- repositoryId
- String
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
If specified, thread positions will be tracked using this iteration as the right side of the diff.
If specified, thread positions will be tracked using this iteration as the left side of the diff.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetThreadsAsync(String, Guid, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
[Preview API] Retrieve all threads in a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>> GetThreadsAsync(string project, Guid repositoryId, int pullRequestId, Nullable<int> iteration = null, Nullable<int> baseIteration = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetThreadsAsync : string * Guid * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
override this.GetThreadsAsync : string * Guid * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
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.
If specified, thread positions will be tracked using this iteration as the right side of the diff.
If specified, thread positions will be tracked using this iteration as the left side of the diff.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetThreadsAsync(String, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
[Preview API] Retrieve all threads in a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>> GetThreadsAsync(string repositoryId, int pullRequestId, Nullable<int> iteration = null, Nullable<int> baseIteration = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetThreadsAsync : string * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
override this.GetThreadsAsync : string * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
Parameters
- repositoryId
- String
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
If specified, thread positions will be tracked using this iteration as the right side of the diff.
If specified, thread positions will be tracked using this iteration as the left side of the diff.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetThreadsAsync(Guid, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
[Preview API] Retrieve all threads in a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>> GetThreadsAsync(Guid repositoryId, int pullRequestId, Nullable<int> iteration = null, Nullable<int> baseIteration = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetThreadsAsync : Guid * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
override this.GetThreadsAsync : Guid * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
Parameters
- repositoryId
- Guid
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
If specified, thread positions will be tracked using this iteration as the right side of the diff.
If specified, thread positions will be tracked using this iteration as the left side of the diff.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetThreadsAsync(Guid, Guid, Int32, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
[Preview API] Retrieve all threads in a pull request.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>> GetThreadsAsync(Guid project, Guid repositoryId, int pullRequestId, Nullable<int> iteration = null, Nullable<int> baseIteration = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetThreadsAsync : Guid * Guid * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
override this.GetThreadsAsync : Guid * Guid * int * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestCommentThread>>
Parameters
- project
- Guid
Project ID
- repositoryId
- Guid
The repository ID of the pull request's target branch.
- pullRequestId
- Int32
ID of the pull request.
If specified, thread positions will be tracked using this iteration as the right side of the diff.
If specified, thread positions will be tracked using this iteration as the left side of the diff.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.