Compartilhar via


EventGridEventExtensions.TryCreatePushNotification Método

Definição

Tenta criar o PushNotification objeto com base nos detalhes no EventGridEvent objeto . O valor retornado indica se a operação foi bem-sucedida ou falhou.

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

Parâmetros

eventGridEvent
EventGridEvent

EventGridEvent do EventGrid

pushNotification
PushNotification

Se esse método retornar true, o objeto pushNotification conterá detalhes preenchidos de eventGridEvent. Se esse método retornar false, o objeto pushNotification será nulo.

Retornos

Aplica-se a