你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourcesOperationsExtensions.CheckExistence 方法

定义

检查资源是否存在。

public static bool CheckExistence(this Microsoft.Azure.Management.ResourceManager.IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion);
static member CheckExistence : Microsoft.Azure.Management.ResourceManager.IResourcesOperations * string * string * string * string * string * string -> bool
<Extension()>
Public Function CheckExistence (operations As IResourcesOperations, resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, apiVersion As String) As Boolean

参数

operations
IResourcesOperations

此扩展方法的操作组。

resourceGroupName
String

包含要检查的资源的资源组的名称。 此名称不区分大小写。

resourceProviderNamespace
String

要检查的资源的资源提供程序。

parentResourcePath
String

父资源标识。

resourceType
String

资源类型。

resourceName
String

要检查资源是否存在的资源的名称。

apiVersion
String

要用于操作的 API 版本。

返回

适用于