Partager via


BillingPaymentMethodCollection.Exists(String, CancellationToken) Méthode

Définition

Vérifie si la ressource existe dans Azure.

  • Chemin de la demande/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • IdPaymentMethods_GetByUser d’opération
public virtual Azure.Response<bool> Exists (string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : string * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : string * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

Paramètres

paymentMethodName
String

ID qui identifie de façon unique un mode de paiement.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

paymentMethodName a la valeur null.

S’applique à