Partilhar via


ApplicationGatewayCollection.GetIfExists(String, CancellationToken) Método

Definição

Tenta obter detalhes para esse recurso do serviço.

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

Parâmetros

applicationGatewayName
String

O nome do gateway de aplicativo.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

applicationGatewayName é nulo.

Aplica-se a