Freigeben über


ExpressRoutePortCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft die angeforderte ExpressRoutePort-Ressource ab.

  • Anforderungspfad/Abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Vorgangs-IdExpressRoutePorts_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ExpressRoutePortResource>> GetAsync (string expressRoutePortName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ExpressRoutePortResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ExpressRoutePortResource>>
Public Overridable Function GetAsync (expressRoutePortName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ExpressRoutePortResource))

Parameter

expressRoutePortName
String

Der Name von ExpressRoutePort.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

expressRoutePortName ist NULL.

Gilt für: