GitHttpClientBase.GetPullRequestLabelAsync 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
GetPullRequestLabelAsync(String, Guid, Int32, String, String, Object, CancellationToken)
[Preview API] Retrieves a single label that has been assigned to a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> GetPullRequestLabelAsync(string project, Guid repositoryId, int pullRequestId, string labelIdOrName, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelAsync : string * Guid * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.GetPullRequestLabelAsync : string * Guid * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
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.
- labelIdOrName
- String
The name or ID of the label requested.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelAsync(Guid, String, Int32, String, String, Object, CancellationToken)
[Preview API] Retrieves a single label that has been assigned to a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> GetPullRequestLabelAsync(Guid project, string repositoryId, int pullRequestId, string labelIdOrName, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelAsync : Guid * string * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.GetPullRequestLabelAsync : Guid * string * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
- project
- Guid
Project ID
- repositoryId
- String
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- labelIdOrName
- String
The name or ID of the label requested.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelAsync(String, String, Int32, String, String, Object, CancellationToken)
[Preview API] Retrieves a single label that has been assigned to a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> GetPullRequestLabelAsync(string project, string repositoryId, int pullRequestId, string labelIdOrName, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelAsync : string * string * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.GetPullRequestLabelAsync : string * string * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
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.
- labelIdOrName
- String
The name or ID of the label requested.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelAsync(String, Int32, String, String, Object, CancellationToken)
[Preview API] Retrieves a single label that has been assigned to a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> GetPullRequestLabelAsync(string repositoryId, int pullRequestId, string labelIdOrName, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelAsync : string * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.GetPullRequestLabelAsync : string * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
- repositoryId
- String
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- labelIdOrName
- String
The name or ID of the label requested.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelAsync(Guid, Int32, String, String, Object, CancellationToken)
[Preview API] Retrieves a single label that has been assigned to a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> GetPullRequestLabelAsync(Guid repositoryId, int pullRequestId, string labelIdOrName, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelAsync : Guid * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.GetPullRequestLabelAsync : Guid * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
- repositoryId
- Guid
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- labelIdOrName
- String
The name or ID of the label requested.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPullRequestLabelAsync(Guid, Guid, Int32, String, String, Object, CancellationToken)
[Preview API] Retrieves a single label that has been assigned to a pull request.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition> GetPullRequestLabelAsync(Guid project, Guid repositoryId, int pullRequestId, string labelIdOrName, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestLabelAsync : Guid * Guid * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
override this.GetPullRequestLabelAsync : Guid * Guid * int * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.WebApiTagDefinition>
Parameters
- project
- Guid
Project ID
- repositoryId
- Guid
The repository ID of the pull request’s target branch.
- pullRequestId
- Int32
ID of the pull request.
- labelIdOrName
- String
The name or ID of the label requested.
- projectId
- String
Project ID or project name.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.