MetricsAdvisorAdministrationClient.GetHookAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft eine vorhandene NotificationHookab.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>> GetHookAsync(string hookId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHookAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>>
override this.GetHookAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>>
Public Overridable Function GetHookAsync (hookId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NotificationHook))
Parameter
- hookId
- String
Der eindeutige Bezeichner des NotificationHook-Objekts.
- cancellationToken
- CancellationToken
Ein CancellationToken , der die Anforderungsdauer steuert.
Gibt zurück
Response<T> mit dem Ergebnis des Vorgangs. Das Ergebnis ist eine NotificationHook instance, die die angeforderten Informationen enthält.
Ausnahmen
hookId
ist NULL.
hookId
ist leer oder keine gültige GUID.
Gilt für:
Azure SDK for .NET