Partager via


ApplicationGatewayCollection.GetIfExists(String, CancellationToken) Méthode

Définition

Tente d’obtenir les détails de cette ressource à partir du service.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}
  • IdApplicationGateways_Get d’opération
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)

Paramètres

applicationGatewayName
String

Nom de la passerelle Application Gateway.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

applicationGatewayName est une chaîne vide et devait être non vide.

applicationGatewayName a la valeur null.

S’applique à