C# Class Microsoft.WindowsPhone.Samples.Notifications.ToastPushNotificationMessage

Represents a toast push notification message.
Toast notifications are system-wide notifications that do not disrupt the user workflow or require intervention to resolve. They are displayed at the top of the screen for ten seconds before disappearing. If the toast notification is tapped, the application that sent the toast notification will launch. A toast notification can be dismissed with a flick. This class members are thread safe.
Inheritance: PushNotificationMessage
Afficher le fichier Open project: WindowsAzure-Toolkits/wa-toolkit-wp-nugets Class Usage Examples

Méthodes publiques

Méthode Description
ToastPushNotificationMessage ( ) : System

Initializes a new instance of the TilePushNotificationMessage class. Initializes a new instance of this type with MessageSendPriority.Normal send priority.

ToastPushNotificationMessage ( MessageSendPriority sendPriority ) : System

Initializes a new instance of the ToastPushNotificationMessage class. Initializes a new instance of this type.

Méthodes protégées

Méthode Description
OnCreatePayload ( ) : byte[]

Create the toast message payload.

OnInitializeRequest ( HttpWebRequest request ) : void

Initialize the request with toast specific headers.

VerifyPayloadSize ( byte payload ) : void

Method Details

OnCreatePayload() protected méthode

Create the toast message payload.
protected OnCreatePayload ( ) : byte[]
Résultat byte[]

OnInitializeRequest() protected méthode

Initialize the request with toast specific headers.
protected OnInitializeRequest ( HttpWebRequest request ) : void
request System.Net.HttpWebRequest The message request.
Résultat void

ToastPushNotificationMessage() public méthode

Initializes a new instance of the TilePushNotificationMessage class. Initializes a new instance of this type with MessageSendPriority.Normal send priority.
public ToastPushNotificationMessage ( ) : System
Résultat System

ToastPushNotificationMessage() public méthode

Initializes a new instance of the ToastPushNotificationMessage class. Initializes a new instance of this type.
public ToastPushNotificationMessage ( MessageSendPriority sendPriority ) : System
sendPriority MessageSendPriority /// The send priority of this message in the MPNS. ///
Résultat System

VerifyPayloadSize() protected méthode

protected VerifyPayloadSize ( byte payload ) : void
payload byte
Résultat void