共用方式為


ServicesOperationsExtensions.CheckNameAvailabilityAsync 方法

定義

檢查指定的搜尋服務名稱是否可供使用。 搜尋服務名稱必須是全域唯一名稱,因為它們是服務 URI (HTTPs:// < name.search.windows.net) > 的一部分。 https://aka.ms/search-manage

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.Models.CheckNameAvailabilityOutputInner> CheckNameAvailabilityAsync (this Microsoft.Azure.Management.Search.Fluent.IServicesOperations operations, string name, Microsoft.Azure.Management.Search.Fluent.Models.SearchManagementRequestOptionsInner searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityAsync : Microsoft.Azure.Management.Search.Fluent.IServicesOperations * string * Microsoft.Azure.Management.Search.Fluent.Models.SearchManagementRequestOptionsInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.Models.CheckNameAvailabilityOutputInner>
<Extension()>
Public Function CheckNameAvailabilityAsync (operations As IServicesOperations, name As String, Optional searchManagementRequestOptions As SearchManagementRequestOptionsInner = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CheckNameAvailabilityOutputInner)

參數

operations
IServicesOperations

這個擴充方法的作業群組。

name
String

要驗證搜尋服務名稱。 搜尋服務名稱只能包含小寫字母、數位或破折號,不能使用虛線做為前兩個字元或最後一個字元、不能包含連續連字號,且長度必須介於 2 到 60 個字元之間。

searchManagementRequestOptions
SearchManagementRequestOptionsInner

作業的其他參數

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於