다음을 통해 공유


IGenericResources.CheckExistenceAsync Method

Definition

Check if a resource exists in a resource group asynchronously.

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)

Parameters

resourceGroupName
String

resourceGroupName the resource group's name

resourceProviderNamespace
String

resourceProviderNamespace the resource provider's namespace

parentResourcePath
String

parentResourcePath the parent's resource path

resourceType
String

resourceType the type of the resource

resourceName
String

resourceName the name of the resource

apiVersion
String

apiVersion the API version

cancellationToken
CancellationToken

Returns

true if the resource exists; false otherwise

Applies to