Compartir a través de


IotHubExtensions.CheckIotHubNameAvailability 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 Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityResponse> CheckIotHubNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckIotHubNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubNameAvailabilityResponse>
<Extension()>
Public Function CheckIotHubNameAvailability (subscriptionResource As SubscriptionResource, content As IotHubNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As 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 para comprobarlo.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a