MetricsAdvisorAdministrationClient.GetHook(String, CancellationToken) 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 Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook> GetHook(string hookId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHook : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>
override this.GetHook : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>
Public Overridable Function GetHook (hookId As String, Optional cancellationToken As CancellationToken = Nothing) As 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