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

WebSiteManagementClientExtensions.CheckNameAvailabilityAsync 方法

定义

检查资源名称是否可用。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner> CheckNameAvailabilityAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient operations, string name, Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes type, bool? isFqdn = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityAsync : Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient * string * Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>
<Extension()>
Public Function CheckNameAvailabilityAsync (operations As IWebSiteManagementClient, name As String, type As CheckNameResourceTypes, Optional isFqdn As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceNameAvailabilityInner)

参数

operations
IWebSiteManagementClient

此扩展方法的操作组。

name
String

要验证的资源名称。

type
CheckNameResourceTypes

用于验证的资源类型。 可能的值包括:“Site”、“Slot”、“HostingEnvironment”、“PublishingUser”、“Microsoft.Web/sites”、“Microsoft.Web/sites/slots”、“Microsoft.Web/hostingEnvironments”、“Microsoft.Web/publishingUsers”

isFqdn
Nullable<Boolean>

是完全限定的域名。

cancellationToken
CancellationToken

取消标记。

返回

注解

检查资源名称是否可用的说明。

适用于