Partilhar via


IotHubExtensions.CheckIotHubNameAvailability Método

Definição

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

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

A SubscriptionResource instância em que 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