Freigeben über


IGenericResources.CheckExistenceAsync Methode

Definition

Überprüfen Sie, ob eine Ressource asynchron in einer Ressourcengruppe vorhanden ist.

public System.Threading.Tasks.Task<bool> CheckExistenceAsync (string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckExistenceAsync : string * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function CheckExistenceAsync (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 Boolean)

Parameter

resourceGroupName
String

resourceGroupName der Name der Ressourcengruppe

resourceProviderNamespace
String

resourceProviderNamespace der Namespace des Ressourcenanbieters

parentResourcePath
String

parentResourcePath, der Ressourcenpfad des übergeordneten Elements

resourceType
String

resourceTyp des Ressourcentyps

resourceName
String

resourceName der Name der Ressource

apiVersion
String

apiVersion der API-Version

cancellationToken
CancellationToken

Gibt zurück

TRUE, wenn die Ressource vorhanden ist; Andernfalls false

Gilt für: