GooglePushMessage Constructor (IDictionary(Of String, String), Nullable(Of TimeSpan))

 

Initializes a new instance of the GooglePushMessage class with a given set of data parameters and an optional timeToLive.

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

Public Sub New (
	data As IDictionary(Of String, String),
	timeToLive As Nullable(Of TimeSpan)
)

Parameters

data
Type: System.Collections.Generic.IDictionary(Of String, String)

timeToLive
Type: System.Nullable(Of TimeSpan)

A TimeSpan relative to the current time. The value of this parameter must be a duration from 0 to 2,419,200 seconds (28 days), and it corresponds to the maximum period of time for which GCM will store and try to deliver the message. Requests that don't contain this field default to the maximum period of 4 weeks.

Return to top
Show: