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

ManagementGroupCollection.CheckNameAvailabilityAsync 方法

定义

检查指定的管理组名称是否有效且唯一

  • 请求路径/提供程序/Microsoft.Management/checkNameAvailability
  • 操作IdManagementGroups_CheckNameAvailability
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityResult>> CheckNameAvailabilityAsync (Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityAsync : Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityResult>>
override this.CheckNameAvailabilityAsync : Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityResult>>
Public Overridable Function CheckNameAvailabilityAsync (content As ManagementGroupNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagementGroupNameAvailabilityResult))

参数

content
ManagementGroupNameAvailabilityContent

管理组名称可用性检查参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于