Partager via


IGenericResources.GetAsync Méthode

Définition

Retourne une ressource appartenant à un groupe de ressources de manière asynchrone.

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)

Paramètres

resourceGroupName
String

resourceGroupName Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceProviderNamespace
String

resourceProviderNamespace Identité de ressource.

parentResourcePath
String

parentResourcePath Resource identity.

resourceType
String

resourceType Resource identity.

resourceName
String

resourceName Identité de ressource.

apiVersion
String

apiVersion valeur string

cancellationToken
CancellationToken

Retours

la ressource générique

S’applique à