Compartilhar via


DnsResolverExtensions.GetDnsResolverAsync Método

Definição

Obtém propriedades de um resolvedor DNS.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}
  • Operação IdDnsResolvers_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsResolverResource>> GetDnsResolverAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dnsResolverName, System.Threading.CancellationToken cancellationToken = default);
static member GetDnsResolverAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsResolverResource>>
<Extension()>
Public Function GetDnsResolverAsync (resourceGroupResource As ResourceGroupResource, dnsResolverName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DnsResolverResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

dnsResolverName
String

O nome do resolvedor DNS.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

dnsResolverName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

dnsResolverName é nulo.

Aplica-se a