Sdílet prostřednictvím


IGenericResources.CheckExistence Method

Definition

Check if a resource exists in a resource group.

public bool CheckExistence (string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion = default);
abstract member CheckExistence : string * string * string * string * string * string -> bool
Public Function CheckExistence (resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, Optional apiVersion As String = Nothing) As 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

Returns

true if the resource exists; false otherwise

Applies to