Compartilhar via


DigitalTwinsExtensions.CheckDigitalTwinsNameAvailabilityAsync Método

Definição

Verifique se um nome DigitalTwinsInstance está disponível.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability
  • IdDigitalTwins_CheckNameAvailability de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameResult>> CheckDigitalTwinsNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckDigitalTwinsNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameResult>>
<Extension()>
Public Function CheckDigitalTwinsNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As DigitalTwinsNameContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DigitalTwinsNameResult))

Parâmetros

subscriptionResource
SubscriptionResource

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

location
AzureLocation

Local de DigitalTwinsInstance.

content
DigitalTwinsNameContent

Defina o parâmetro name na estrutura DigitalTwinsInstanceCheckName como o nome do DigitalTwinsInstance como marcar.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a