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
System.String

resourceGroupName the resource group's name

resourceProviderNamespace
System.String

resourceProviderNamespace the resource provider's namespace

parentResourcePath
System.String

parentResourcePath the parent's resource path

resourceType
System.String

resourceType the type of the resource

resourceName
System.String

resourceName the name of the resource

apiVersion
System.String

apiVersion the API version

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Boolean>

true if the resource exists; false otherwise

Applies to