Partilhar via


ExpressRoutePortCollection.GetAsync(String, CancellationToken) Método

Definição

Recupera o recurso do ExpressRoutePort solicitado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operação 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))

Parâmetros

expressRoutePortName
String

O nome de ExpressRoutePort.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

expressRoutePortName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

expressRoutePortName é nulo.

Aplica-se a