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 = null);
abstract member GetByIdAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'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