다음을 통해 공유


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
String

id the id of the resource.

cancellationToken
CancellationToken

cancellationToken the cancellation token

Returns

Task<T>

an immutable representation of the resource

Applies to