共用方式為


WebSiteManagementClientExtensions.CheckNameAvailabilityAsync 方法

定義

檢查資源名稱是否可用。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner> CheckNameAvailabilityAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient operations, string name, Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes type, bool? isFqdn = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityAsync : Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient * string * Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>
<Extension()>
Public Function CheckNameAvailabilityAsync (operations As IWebSiteManagementClient, name As String, type As CheckNameResourceTypes, Optional isFqdn As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceNameAvailabilityInner)

參數

operations
IWebSiteManagementClient

這個擴充方法的作業群組。

name
String

要驗證的資源名稱。

type
CheckNameResourceTypes

用於驗證的資源類型。 可能的值包括:'Site'、'Slot'、'HostingEnvironment'、'PublishingUser'、'Microsoft.Web/sites'、'Microsoft.Web/sites/slots'、'Microsoft.Web/hostingEnvironments'、'Microsoft.Web/publishingUsers'

isFqdn
Nullable<Boolean>

是完整功能變數名稱。

cancellationToken
CancellationToken

取消語彙基元。

傳回

備註

檢查資源名稱是否可用的描述。

適用於