C# Класс 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.
Наследование: PushNotificationMessage
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnCreatePayload ( ) : byte[]

Create the toast message payload.

OnInitializeRequest ( HttpWebRequest request ) : void

Initialize the request with toast specific headers.

VerifyPayloadSize ( byte payload ) : void

Описание методов

OnCreatePayload() защищенный Метод

Create the toast message payload.
protected OnCreatePayload ( ) : byte[]
Результат byte[]

OnInitializeRequest() защищенный Метод

Initialize the request with toast specific headers.
protected OnInitializeRequest ( HttpWebRequest request ) : void
request System.Net.HttpWebRequest The message request.
Результат void

ToastPushNotificationMessage() публичный Метод

Initializes a new instance of the TilePushNotificationMessage class. Initializes a new instance of this type with MessageSendPriority.Normal send priority.
public ToastPushNotificationMessage ( ) : System
Результат System

ToastPushNotificationMessage() публичный Метод

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. ///
Результат System

VerifyPayloadSize() защищенный Метод

protected VerifyPayloadSize ( byte payload ) : void
payload byte
Результат void