PushNotificationReceivedEventArgs Clase

Definición

Proporciona datos para el evento PushReceived .

public ref class PushNotificationReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.PushNotifications.PushNotificationsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PushNotificationReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.PushNotifications.PushNotificationsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PushNotificationReceivedEventArgs
Public NotInheritable Class PushNotificationReceivedEventArgs
Herencia
Object Platform::Object IInspectable PushNotificationReceivedEventArgs
Atributos

Comentarios

Para asegurarse de que se llama al controlador de eventos PushReceived dentro del proceso de la aplicación en ejecución, asegúrese de registrar el controlador para este evento antes de llamar a Register. De lo contrario, se producirá la siguiente excepción en tiempo de ejecución:

System.Runtime.InteropServices.COMException: 'Element not found. Must register event handlers before calling Register().'

Propiedades

Nombre Description
Payload

Obtiene la carga de la notificación de inserción que desencadenó el evento PushReceived asociado.

Métodos

Nombre Description
GetDeferral()

Informa al sistema de que la aplicación puede seguir funcionando después de que el controlador de eventos PushReceived vuelva.

Eventos

Nombre Description
Canceled

Se genera cuando el sistema va a cancelar la tarea en segundo plano iniciada para controlar el evento PushReceived .

Se aplica a