ApplePushMessage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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.WindowsAzure.Mobile.Service.ApplePushMessage : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.WindowsAzure.Mobile.Service.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.WindowsAzure.Mobile.Service.ApplePushMessage : string * Nullable<TimeSpan> -> Microsoft.WindowsAzure.Mobile.Service.ApplePushMessage
Public Sub New (alert As String, expiration As Nullable(Of TimeSpan))
Parameters
- alert
- String
The notification alert message.
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
Azure SDK for .NET