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

FrontDoorExtensions.CheckFrontDoorNameAvailabilityAsync 方法

定义

重载

CheckFrontDoorNameAvailabilityAsync(SubscriptionResource, FrontDoorNameAvailabilityContent, CancellationToken)

检查 Front Door 子域的可用性。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability
  • 操作IdFrontDoorNameAvailabilityWithSubscription_Check
CheckFrontDoorNameAvailabilityAsync(TenantResource, FrontDoorNameAvailabilityContent, CancellationToken)

检查 Front Door 资源名称的可用性。

  • 请求路径/providers/Microsoft.Network/checkFrontDoorNameAvailability
  • 操作IdFrontDoorNameAvailability_Check

CheckFrontDoorNameAvailabilityAsync(SubscriptionResource, FrontDoorNameAvailabilityContent, CancellationToken)

检查 Front Door 子域的可用性。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability
  • 操作IdFrontDoorNameAvailabilityWithSubscription_Check
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityResult>> CheckFrontDoorNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckFrontDoorNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityResult>>
<Extension()>
Public Function CheckFrontDoorNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As FrontDoorNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FrontDoorNameAvailabilityResult))

参数

subscriptionResource
SubscriptionResource

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

content
FrontDoorNameAvailabilityContent

输入到检查。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于

CheckFrontDoorNameAvailabilityAsync(TenantResource, FrontDoorNameAvailabilityContent, CancellationToken)

检查 Front Door 资源名称的可用性。

  • 请求路径/providers/Microsoft.Network/checkFrontDoorNameAvailability
  • 操作IdFrontDoorNameAvailability_Check
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityResult>> CheckFrontDoorNameAvailabilityAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckFrontDoorNameAvailabilityAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FrontDoor.Models.FrontDoorNameAvailabilityResult>>
<Extension()>
Public Function CheckFrontDoorNameAvailabilityAsync (tenantResource As TenantResource, content As FrontDoorNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FrontDoorNameAvailabilityResult))

参数

tenantResource
TenantResource

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

content
FrontDoorNameAvailabilityContent

输入到检查。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于