EventGridEventExtensions.TryCreatePushNotification Method

Definition

Tries to create the PushNotification object from the details in EventGridEvent object. Return value indicates whether the operation succeeded or failed.

C#
public static bool TryCreatePushNotification(this Azure.Messaging.EventGrid.EventGridEvent eventGridEvent, out Microsoft.Extensions.Configuration.AzureAppConfiguration.PushNotification pushNotification);

Parameters

eventGridEvent
EventGridEvent

EventGridEvent from EventGrid

pushNotification
PushNotification

If this method returns true, the pushNotification object contains details populated from eventGridEvent. If this method returns false, the pushNotification object is null.

Returns

Applies to

Product Versions
Azure SDK for .NET Latest, Preview