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

IWebSiteManagementClient.CheckNameAvailabilityWithHttpMessagesAsync 方法

定义

检查资源名称是否可用。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>> CheckNameAvailabilityWithHttpMessagesAsync (string name, Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes type, bool? isFqdn = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityWithHttpMessagesAsync : string * Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>>
Public Function CheckNameAvailabilityWithHttpMessagesAsync (name As String, type As CheckNameResourceTypes, Optional isFqdn As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ResourceNameAvailabilityInner))

参数

name
String

要验证的资源名称。

type
CheckNameResourceTypes

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

isFqdn
Nullable<Boolean>

是完全限定的域名。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

注解

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

适用于