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

MixedRealityExtensions.CheckMixedRealityNameAvailabilityAsync 方法

定义

检查名称可用性,了解本地唯一性

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability
  • 操作 IdCheckNameAvailabilityLocal
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MixedReality.Models.MixedRealityNameAvailabilityResult>> CheckMixedRealityNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.MixedReality.Models.MixedRealityNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckMixedRealityNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.MixedReality.Models.MixedRealityNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MixedReality.Models.MixedRealityNameAvailabilityResult>>
<Extension()>
Public Function CheckMixedRealityNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As MixedRealityNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MixedRealityNameAvailabilityResult))

参数

subscriptionResource
SubscriptionResource

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

location
AzureLocation

验证唯一性的位置。

content
MixedRealityNameAvailabilityContent

检查名称可用性请求。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于