Freigeben über


IGenericResources.GetAsync Methode

Definition

Gibt eine Ressource, die zu einer Ressourcengruppe gehört, asynchron zurück.

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

Parameter

resourceGroupName
String

resourceGroupName Der Name der Ressourcengruppe. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.

resourceProviderNamespace
String

resourceProviderNamespace Resource Identity.

parentResourcePath
String

parentResourcePath-Ressourcenidentität.

resourceType
String

resourceType-Ressourcenidentität.

resourceName
String

resourceName Resource Identity.

apiVersion
String

apiVersion: String-Wert

cancellationToken
CancellationToken

Gibt zurück

die generische Ressource

Gilt für: