Share via


ApplePushMessage Constructor (String, Nullable<TimeSpan>)

 

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

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

Syntax

public ApplePushMessage(
    string alert,
    Nullable<TimeSpan> expiration
)
public:
ApplePushMessage(
    String^ alert,
    Nullable<TimeSpan> expiration
)
new : 
        alert:string *
        expiration:Nullable<TimeSpan> -> ApplePushMessage
Public Sub New (
    alert As String,
    expiration As Nullable(Of TimeSpan)
)

Parameters

  • expiration
    Type: System.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.

See Also

ApplePushMessage Overload
ApplePushMessage Class
Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top