共用方式為


ICdnManagementClient.CheckNameAvailabilityWithHttpMessagesAsync 方法

定義

檢查資源名稱的可用性。 對於名稱為全域唯一的資源,例如 CDN 端點,則需要此專案。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Cdn.Fluent.Models.CheckNameAvailabilityOutputInner>> CheckNameAvailabilityWithHttpMessagesAsync (string name, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Cdn.Fluent.Models.CheckNameAvailabilityOutputInner>>
Public Function CheckNameAvailabilityWithHttpMessagesAsync (name As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of CheckNameAvailabilityOutputInner))

參數

name
String

要驗證的資源名稱。

customHeaders
Dictionary<String,List<String>>

將新增至要求的標頭。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於