ApplePushMessage Constructors

Definition

Overloads

ApplePushMessage()

Initializes a new instance of the ApplePushMessage class enabling creation a notification message targeting Apple Push Notification Service. Set the appropriate properties on the message and submit through the PushClient.

ApplePushMessage(SerializationInfo, StreamingContext)

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

ApplePushMessage(String, Nullable<TimeSpan>)

Initializes a new instance of the ApplePushMessage class with a given alert message and an optional expiration of the notification.

ApplePushMessage()

Initializes a new instance of the ApplePushMessage class enabling creation a notification message targeting Apple Push Notification Service. Set the appropriate properties on the message and submit through the PushClient.

public ApplePushMessage ();
Public Sub New ()

Applies to

ApplePushMessage(SerializationInfo, StreamingContext)

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

protected ApplePushMessage (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Mobile.Server.ApplePushMessage : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Mobile.Server.ApplePushMessage
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo containing information about the AlertProperties to be initialized.

context
StreamingContext

A StreamingContext that indicates the source destination and context information of a serialized stream.

Applies to

ApplePushMessage(String, Nullable<TimeSpan>)

Initializes a new instance of the ApplePushMessage class with a given alert message and an optional expiration of the notification.

public ApplePushMessage (string alert, TimeSpan? expiration);
new Microsoft.Azure.Mobile.Server.ApplePushMessage : string * Nullable<TimeSpan> -> Microsoft.Azure.Mobile.Server.ApplePushMessage
Public Sub New (alert As String, expiration As Nullable(Of TimeSpan))

Parameters

alert
String

The notification alert message.

expiration
Nullable<TimeSpan>

A TimeSpan relative to the current time. At the end of the lifetime, the notification is no longer valid and can be discarded. If this value is non-null, APNs stores the notification and tries to deliver the notification at least once. Specify null to indicate that the notification expires immediately and that APNs should not store the notification at all.

Applies to