Partilhar via


ExpressRouteProviderPortCollection.GetIfExists Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}
  • Operação IdExpressRouteProviderPort
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRouteProviderPortResource> GetIfExists (string providerport, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRouteProviderPortResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.ExpressRouteProviderPortResource>
Public Overridable Function GetIfExists (providerport As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ExpressRouteProviderPortResource)

Parâmetros

providerport
String

O nome da porta do provedor.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

providerport é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

providerport é nulo.

Aplica-se a