Share via


MpnsPushMessage Class

 

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.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.MpnsPushMessage

Syntax

[XmlRootAttribute("Notification", Namespace = "WPNotification")]
public class MpnsPushMessage : IPushMessage
[XmlRootAttribute("Notification", Namespace = "WPNotification")]
public ref class MpnsPushMessage : IPushMessage
[<XmlRootAttribute("Notification", Namespace = "WPNotification")>]
type MpnsPushMessage = 
    class
        interface IPushMessage
    end
<XmlRootAttribute("Notification", Namespace := "WPNotification")>
Public Class MpnsPushMessage
    Implements IPushMessage

Constructors

Name Description
System_CAPS_pubmethod 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

Name Description
System_CAPS_pubproperty Headers

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

System_CAPS_pubproperty Message

Gets or sets the specific MpnsMessage for this instance.

System_CAPS_pubproperty Version

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

System_CAPS_pubproperty 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

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

Provides an XML representation of the MpnsPushMessage instance.(Overrides Object.ToString().)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top