Freigeben über


ExpressRoutePortsLocationCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Vorgang IdExpressRoutePortsLocations_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRoutePortsLocationResource>> GetIfExistsAsync (string locationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRoutePortsLocationResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRoutePortsLocationResource>>
Public Overridable Function GetIfExistsAsync (locationName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ExpressRoutePortsLocationResource))

Parameter

locationName
String

Name des angeforderten ExpressRoutePort-Peeringspeicherorts.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

locationName ist NULL.

Gilt für: