Compartilhar via


DnsForwardingRuleCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém as propriedades de uma regra de encaminhamento em um conjunto de regras de encaminhamento de DNS.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}
  • Operação IdForwardingRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>> GetAsync (string forwardingRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>>
Public Overridable Function GetAsync (forwardingRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DnsForwardingRuleResource))

Parâmetros

forwardingRuleName
String

O nome da regra de encaminhamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

forwardingRuleName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

forwardingRuleName é nulo.

Aplica-se a