Freigeben über


MetricsAdvisorAdministrationClient.DeleteHookAsync Methode

Definition

Löscht ein vorhandenes NotificationHook.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteHookAsync(string hookId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteHookAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteHookAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteHookAsync (hookId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameter

hookId
String

Der eindeutige Bezeichner des NotificationHook zu löschenden.

cancellationToken
CancellationToken

Ein CancellationToken , der die Lebensdauer der Anforderung steuert.

Gibt zurück

Response mit dem Ergebnis des Vorgangs.

Ausnahmen

hookId ist NULL.

hookId ist leer oder keine gültige GUID.

Gilt für: