Udostępnij za pośrednictwem


TemplatePushMessage Class

Definition

The ApplePushMessage helps generating a notification payload targeting devices that have registered with a template registration. A template lets the device specify the shape of notifications that it wants to receive including a set of keywords which it wants the sender to fill in. Instead of the sender building the entire notification, it simply sets the keyword values. The Notification Hub will then build a notification using the particular template registered by device and the keywords provided by the sender. This makes it much easier to send notifications regardless of the platform of the receiver. The keywords defined by the TemplatePushMessage class can be sent using the PushClient class.

[System.Serializable]
public class TemplatePushMessage : System.Collections.Generic.Dictionary<string,string>, Microsoft.Azure.Mobile.Server.Notifications.IPushMessage
[<System.Serializable>]
type TemplatePushMessage = class
    inherit Dictionary<string, string>
    interface IPushMessage
Public Class TemplatePushMessage
Inherits Dictionary(Of String, String)
Implements IPushMessage
Inheritance
TemplatePushMessage
Attributes
Implements

Constructors

TemplatePushMessage()

Initializes a new instance of the TemplatePushMessage class.

TemplatePushMessage(SerializationInfo, StreamingContext)

Initializes a new instance of the TemplatePushMessage class with the specified serialization information and streaming context.

Extension Methods

TryRemove<TKey,TValue>(Dictionary<TKey,TValue>, TKey, TValue)

Removes the value associated with specified key.

Applies to