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

AnalysisExtensions.CheckAnalysisServerNameAvailabilityAsync 方法

定义

检查目标位置中的名称可用性。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability
  • 操作IdServers_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult>> CheckAnalysisServerNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckAnalysisServerNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult>>
<Extension()>
Public Function CheckAnalysisServerNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As AnalysisServerNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AnalysisServerNameAvailabilityResult))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

操作将查找到的区域名称。

content
AnalysisServerNameAvailabilityContent

包含用于预配 Analysis Services 服务器的信息。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于