Language
Edit

GitHttpClientBase.GetPullRequestsByProjectAsync Method

Definition

Overloads

GetPullRequestsByProjectAsync(Guid, GitPullRequestSearchCriteria, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve all pull requests matching a specified criteria.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>> GetPullRequestsByProjectAsync(Guid project, Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestSearchCriteria searchCriteria, Nullable<int> maxCommentLength = null, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestsByProjectAsync : Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestSearchCriteria * Nullable<int> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>>
override this.GetPullRequestsByProjectAsync : Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestSearchCriteria * Nullable<int> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>>

Parameters

project
Guid

Project ID

searchCriteria
GitPullRequestSearchCriteria

Pull requests will be returned that match this search criteria.

maxCommentLength
Nullable<Int32>

Not used.

skip
Nullable<Int32>

The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.

top
Nullable<Int32>

The number of pull requests to retrieve.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestsByProjectAsync(String, GitPullRequestSearchCriteria, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve all pull requests matching a specified criteria.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>> GetPullRequestsByProjectAsync(string project, Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestSearchCriteria searchCriteria, Nullable<int> maxCommentLength = null, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestsByProjectAsync : string * Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestSearchCriteria * Nullable<int> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>>
override this.GetPullRequestsByProjectAsync : string * Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequestSearchCriteria * Nullable<int> * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>>

Parameters

project
String

Project ID or project name

searchCriteria
GitPullRequestSearchCriteria

Pull requests will be returned that match this search criteria.

maxCommentLength
Nullable<Int32>

Not used.

skip
Nullable<Int32>

The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.

top
Nullable<Int32>

The number of pull requests to retrieve.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to