Compartir a través de


IotHubExtensions.CheckIotHubNameAvailabilityAsync Método

Definición

Compruebe si hay disponible un nombre de centro de IoT.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability
  • IdIotHubResource_CheckNameAvailability de operaciones
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityResponse>> CheckIotHubNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckIotHubNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityResponse>>
<Extension()>
Public Function CheckIotHubNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As IotHubNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IotHubNameAvailabilityResponse))

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

content
IotHubNameAvailabilityContent

Establezca el parámetro name en la estructura OperationInputs en el nombre del centro de IoT que se va a comprobar.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a