Share via


EventGridEventExtensions.TryCreatePushNotification Methode

Definition

Versucht, das PushNotification -Objekt aus den Details im EventGridEvent -Objekt zu erstellen. Rückgabewert gibt an, ob der Vorgang erfolgreich war oder fehlgeschlagen ist.

public static bool TryCreatePushNotification (this Azure.Messaging.EventGrid.EventGridEvent eventGridEvent, out Microsoft.Extensions.Configuration.AzureAppConfiguration.PushNotification pushNotification);
static member TryCreatePushNotification : Azure.Messaging.EventGrid.EventGridEvent * PushNotification -> bool
<Extension()>
Public Function TryCreatePushNotification (eventGridEvent As EventGridEvent, ByRef pushNotification As PushNotification) As Boolean

Parameter

eventGridEvent
EventGridEvent

EventGridEvent von EventGrid

pushNotification
PushNotification

Wenn diese Methode true zurückgibt, enthält das pushNotification-Objekt Details, die aus eventGridEvent aufgefüllt werden. Wenn diese Methode false zurückgibt, ist das pushNotification-Objekt NULL.

Gibt zurück

Gilt für: