Udostępnij za pośrednictwem


WindowsPushMessage Class

Definition

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

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

Constructors

WindowsPushMessage()

Initializes a new instance of the WindowsPushMessage class.

WindowsPushMessage(Int32, TileBinding[])

Initializes a new instance of the WindowsPushMessage class.

Properties

Headers

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

Visual

A VisualTile element which contains multiple binding child elements, each of which defines a tile.

XmlPayload

As an alternative to building the notification programmatically by adding TileBinding instances to the WindowsPushMessage, 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 WindowsPushMessage instance.

Applies to