GitHubClient.GetRepositoryByIdAsync(Int32, CancellationToken) 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.
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.