Compartir a través de


WebSiteManagementClientExtensions.CheckNameAvailabilityAsync Método

Definición

Compruebe si hay un nombre de recurso disponible.

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)

Parámetros

operations
IWebSiteManagementClient

El grupo de operaciones de este método de extensión.

name
String

Nombre del recurso que se va a comprobar.

type
CheckNameResourceTypes

Tipo de recurso usado para la comprobación. Entre los valores posibles se incluyen: 'Site', 'Slot', 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'

isFqdn
Nullable<Boolean>

Es el nombre de dominio completo.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Comentarios

Descripción para Comprobar si hay disponible un nombre de recurso.

Se aplica a