Partager via


ApplicationGatewayCollection.GetIfExistsAsync 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 System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ApplicationGatewayResource>> GetIfExistsAsync (string applicationGatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ApplicationGatewayResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.ApplicationGatewayResource>>
Public Overridable Function GetIfExistsAsync (applicationGatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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 à