Compartilhar via


IGenericResources.GetByIdAsync(String, String, CancellationToken) Método

Definição

Retornar um recurso pela ID do recurso de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource> GetByIdAsync (string id, string apiVersion = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetByIdAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource>
Public Function GetByIdAsync (id As String, Optional apiVersion As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IGenericResource)

Parâmetros

id
String

id A ID do recurso.

apiVersion
String

apiVersion o valor string

cancellationToken
CancellationToken

Retornos

o recurso genérico

Aplica-se a