Freigeben über


WebApplicationFirewallPolicyCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Vorgangs-IdWebApplicationFirewallPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.WebApplicationFirewallPolicyResource>> GetIfExistsAsync (string policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.WebApplicationFirewallPolicyResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.WebApplicationFirewallPolicyResource>>
Public Overridable Function GetIfExistsAsync (policyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of WebApplicationFirewallPolicyResource))

Parameter

policyName
String

Der Name der Richtlinie.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

policyName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

policyName ist NULL.

Gilt für: