Partilhar via


IotHubExtensions.CheckIotHubNameAvailabilityAsync Método

Definição

Verifique se um nome de hub IoT está disponível.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability
  • IdIotHubResource_CheckNameAvailability de operação
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

A SubscriptionResource instância na qual o método será executado.

content
IotHubNameAvailabilityContent

Defina o parâmetro name na estrutura OperationInputs como o nome do hub IoT como marcar.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a