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

ServicesOperationsExtensions.CheckNameAvailabilityAsync 方法

定义

检查给定的搜索服务名称是否可供使用。 搜索服务名称必须全局唯一,因为它们是服务 URI (https://< name.search.windows.net) > 的一部分。 https://aka.ms/search-manage

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

参数

operations
IServicesOperations

此扩展方法的操作组。

name
String

要验证的搜索服务名称。 搜索服务名称必须仅包含小写字母、数字或短划线,不能使用短划线作为前两个字符或最后一个字符,不能包含连续短划线,并且长度必须介于 2 到 60 个字符之间。

searchManagementRequestOptions
SearchManagementRequestOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于