你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.

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

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