Partager via


ServiceAlertCollection.ExistsAsync(Guid, CancellationToken) Méthode

Définition

Vérifie si la ressource existe dans Azure.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}
  • IdAlerts_GetById d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Guid alertId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (alertId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Paramètres

alertId
Guid

ID unique d’une instance d’alerte.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à