Compartir a través de


ExpressRoutePortCollection.GetIfExistsAsync(String, CancellationToken) Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • IdExpressRoutePorts_Get de operaciones
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRoutePortResource>> GetIfExistsAsync (string expressRoutePortName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRoutePortResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRoutePortResource>>
Public Overridable Function GetIfExistsAsync (expressRoutePortName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ExpressRoutePortResource))

Parámetros

expressRoutePortName
String

Nombre de ExpressRoutePort.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

expressRoutePortName es una cadena vacía y se espera que no esté vacía.

expressRoutePortName es null.

Se aplica a