IGenericResources.CheckExistenceAsync(String, String, String, String, String, String, CancellationToken) Method

Definition

Checks if a resource exists in a resource group.

public System.Threading.Tasks.Task<bool> CheckExistenceAsync (string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, System.Threading.CancellationToken cancellationToken = null);
abstract member CheckExistenceAsync : string * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>

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

Task<Boolean>

true if the resource exists; false otherwise

Applies to