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

SubscriptionClientExtensions.CheckResourceNameAsync 方法

定义

检查资源名称有效性

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.CheckResourceNameResult> CheckResourceNameAsync (this Microsoft.Azure.Management.ResourceManager.ISubscriptionClient operations, Microsoft.Azure.Management.ResourceManager.Models.ResourceName resourceNameDefinition = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckResourceNameAsync : Microsoft.Azure.Management.ResourceManager.ISubscriptionClient * Microsoft.Azure.Management.ResourceManager.Models.ResourceName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.CheckResourceNameResult>
<Extension()>
Public Function CheckResourceNameAsync (operations As ISubscriptionClient, Optional resourceNameDefinition As ResourceName = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CheckResourceNameResult)

参数

operations
ISubscriptionClient

此扩展方法的操作组。

resourceNameDefinition
ResourceName

具有资源名称和资源类型的值的资源对象

cancellationToken
CancellationToken

取消标记。

返回

注解

如果资源名称不是保留字、不包含保留字且不以保留字开头,则资源名称有效

适用于