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

VoiceServicesExtensions.CheckVoiceServicesNameAvailabilityAsync 方法

定义

检查资源名称在给定区域中是否可用。

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

参数

subscriptionResource
SubscriptionResource

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

location
AzureLocation

验证唯一性的位置。

content
VoiceServicesCheckNameAvailabilityContent

检查可用性请求正文。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于