ISupportsGettingById<T>.GetByIdAsync(String, CancellationToken) Method

Definition

Gets the information about a resource from Azure based on the resource id.

public System.Threading.Tasks.Task<T> GetByIdAsync (string id, System.Threading.CancellationToken cancellationToken = default);
abstract member GetByIdAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function GetByIdAsync (id As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

Parameters

id
System.String

id the id of the resource.

cancellationToken
System.Threading.CancellationToken

cancellationToken the cancellation token

Returns

System.Threading.Tasks.Task<T>

an immutable representation of the resource

Applies to