Compartilhar via


DnsResolverExtensions.GetDnsForwardingRulesetAsync Método

Definição

Obtém uma propriedade de conjunto de regras de encaminhamento DNS.

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

Parâmetros

resourceGroupResource
ResourceGroupResource

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

rulesetName
String

O nome do conjunto de regras de encaminhamento DNS.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

rulesetName é nulo.

Aplica-se a