GitHubClient.GetRepositoryByIdAsync(Int32, CancellationToken) Method

Definition

Get a repository by Id

public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.RepositoryDetails> GetRepositoryByIdAsync(int repositoryId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRepositoryByIdAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.RepositoryDetails>
override this.GetRepositoryByIdAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.GitHub.Models.RepositoryDetails>
Public Overridable Function GetRepositoryByIdAsync (repositoryId As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RepositoryDetails)

Parameters

repositoryId
Int32

Repository Id

cancellationToken
CancellationToken

Cancellation token.

Returns

The Get a repository by Id response.

Remarks

Gets a repository by Id.

Applies to