IWebSiteManagementClient.CheckNameAvailabilityWithHttpMessagesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
檢查資源名稱是否可用。
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
要驗證的資源名稱。
用於驗證的資源類型。 可能的值包括:'Site'、'Slot'、'HostingEnvironment'、'PublishingUser'、'Microsoft.Web/sites'、'Microsoft.Web/sites/slots'、'Microsoft.Web/hostingEnvironments'、'Microsoft.Web/publishingUsers'
- customHeaders
- Dictionary<String,List<String>>
將新增至要求的標頭。
- cancellationToken
- CancellationToken
取消語彙基元。
傳回
備註
檢查資源名稱是否可用的描述。