PushClient.SendAsync Method (IPushMessage)
Sends a notification to the Notification Hub.
Namespace: Microsoft.WindowsAzure.Mobile.Service.Notifications
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Syntax
public virtual Task<NotificationOutcome> SendAsync(
IPushMessage message
)
public:
virtual Task<NotificationOutcome^>^ SendAsync(
IPushMessage^ message
)
abstract SendAsync :
message:IPushMessage -> Task<NotificationOutcome>
override SendAsync :
message:IPushMessage -> Task<NotificationOutcome>
Public Overridable Function SendAsync (
message As IPushMessage
) As Task(Of NotificationOutcome)
Parameters
message
Type: Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessageThe notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.
Return Value
Type: System.Threading.Tasks.Task<NotificationOutcome>
A Task<TResult> representing the notification send operation.
See Also
SendAsync Overload
PushClient Class
Microsoft.WindowsAzure.Mobile.Service.Notifications Namespace
Return to top