IGenericResources.CheckExistenceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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