Udostępnij za pośrednictwem


MpnsPushMessage Class

Definition

The MpnsPushMessage class helps in generating a notification payload targeting Microsoft Push Notification Services. Notifications can be sent using the PushClient class which is available from the ApiServices class.

public class MpnsPushMessage : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage
type MpnsPushMessage = class
    interface IPushMessage
Public Class MpnsPushMessage
Implements IPushMessage
Inheritance
MpnsPushMessage
Implements

Constructors

MpnsPushMessage(MpnsMessage)

Initializes a new instance of the MpnsPushMessage class with a given toastOrTile. The toast or tile can be CycleTile, FlipTile, IconicTile, or Toast (defined in the Notifications namespace).

Properties

Headers

Any additional HTTP headers sent to the Microsoft Push Notification Services along with the notification.

Message

Gets or sets the specific MpnsMessage for this instance.

Version

Gets or sets the version of the of the toast or tile.

XmlPayload

As an alternative to building the notification programmatically using a CycleTile, FlipTileIconicTile, or Toast (defined in the Notifications namespace), it is possible to provide a complete XML representation which will be sent to the Notification Hub unaltered.

Methods

ToString()

Provides an XML representation of the MpnsPushMessage instance.

Applies to