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

DataMigrationServiceResource.CheckChildrenNameAvailabilityAsync 方法

定义

此方法检查建议的嵌套资源名称是否有效且可用。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability
  • 操作IdServices_CheckChildrenNameAvailability
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>> CheckChildrenNameAvailabilityAsync (Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckChildrenNameAvailabilityAsync : Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>>
override this.CheckChildrenNameAvailabilityAsync : Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>>
Public Overridable Function CheckChildrenNameAvailabilityAsync (nameAvailabilityRequest As NameAvailabilityRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NameAvailabilityResponse))

参数

nameAvailabilityRequest
NameAvailabilityRequest

要验证的请求名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

nameAvailabilityRequest 为 null。

适用于