共用方式為


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

取消語彙基元。

傳回

備註

檢查資源名稱是否可用的描述。

適用於