Udostępnij za pośrednictwem


GooglePushMessage Constructors

Definition

Overloads

GooglePushMessage()

Initializes a new instance of the GooglePushMessage class enabling creation of a notification message targeting Google Cloud Messaging for Chrome (GCM).Set the appropriate properties on the message and submit through the PushClient

GooglePushMessage(IDictionary<String,String>, Nullable<TimeSpan>)

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

GooglePushMessage(SerializationInfo, StreamingContext)

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

GooglePushMessage()

Initializes a new instance of the GooglePushMessage class enabling creation of a notification message targeting Google Cloud Messaging for Chrome (GCM).Set the appropriate properties on the message and submit through the PushClient

public GooglePushMessage ();
Public Sub New ()

Applies to

GooglePushMessage(IDictionary<String,String>, Nullable<TimeSpan>)

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

public GooglePushMessage (System.Collections.Generic.IDictionary<string,string> data, TimeSpan? timeToLive);
new Microsoft.Azure.Mobile.Server.GooglePushMessage : System.Collections.Generic.IDictionary<string, string> * Nullable<TimeSpan> -> Microsoft.Azure.Mobile.Server.GooglePushMessage
Public Sub New (data As IDictionary(Of String, String), timeToLive As Nullable(Of TimeSpan))

Parameters

timeToLive
Nullable<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.

Applies to

GooglePushMessage(SerializationInfo, StreamingContext)

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

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

Parameters

info
SerializationInfo

A SerializationInfo containing information about the GooglePushMessage to be initialized.

context
StreamingContext

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

Applies to