BuildHttpClientBase.GetPullRequestAsync 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
GetPullRequestAsync(Guid, String, String, String, Nullable<Guid>, Object, CancellationToken) |
[Preview API] Gets a pull request object from source provider. |
GetPullRequestAsync(String, String, String, String, Nullable<Guid>, Object, CancellationToken) |
[Preview API] Gets a pull request object from source provider. |
GetPullRequestAsync(Guid, String, String, String, Nullable<Guid>, Object, CancellationToken)
[Preview API] Gets a pull request object from source provider.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest> GetPullRequestAsync (Guid project, string providerName, string pullRequestId, string repositoryId = null, Nullable<Guid> serviceEndpointId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestAsync : Guid * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>
override this.GetPullRequestAsync : Guid * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>
Parameters
- project
- Guid
Project ID
- providerName
- String
The name of the source provider.
- pullRequestId
- String
Vendor-specific id of the pull request.
- repositoryId
- String
Vendor-specific identifier or the name of the repository that contains the pull request.
If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestAsync(String, String, String, String, Nullable<Guid>, Object, CancellationToken)
[Preview API] Gets a pull request object from source provider.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest> GetPullRequestAsync (string project, string providerName, string pullRequestId, string repositoryId = null, Nullable<Guid> serviceEndpointId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestAsync : string * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>
override this.GetPullRequestAsync : string * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>
Parameters
- project
- String
Project ID or project name
- providerName
- String
The name of the source provider.
- pullRequestId
- String
Vendor-specific id of the pull request.
- repositoryId
- String
Vendor-specific identifier or the name of the repository that contains the pull request.
If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for