Freigeben über


IGenericResources.GetByIdAsync(String, String, CancellationToken) Methode

Definition

Zurückgeben einer Ressource anhand der Ressourcen-ID asynchron.

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)

Parameter

id
String

id Die ID der Ressource.

apiVersion
String

apiVersion der String-Wert

cancellationToken
CancellationToken

Gibt zurück

die generische Ressource

Gilt für: