Freigeben über


LoadBalancerResource.GetOutboundRule(String, CancellationToken) Methode

Definition

Ruft die angegebene Load Balancer-Ausgangsregel ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}
  • Vorgangs-IdLoadBalancerOutboundRules_Get
public virtual Azure.Response<Azure.ResourceManager.Network.OutboundRuleResource> GetOutboundRule (string outboundRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOutboundRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.OutboundRuleResource>
override this.GetOutboundRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.OutboundRuleResource>
Public Overridable Function GetOutboundRule (outboundRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of OutboundRuleResource)

Parameter

outboundRuleName
String

Der Name der Ausgangsregel.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

outboundRuleName ist NULL.

Gilt für: