PushClient.SendAsync Method (IPushMessage, IEnumerable<String>)
Sends a notification to the Notification Hub with a given tag expression.
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,
IEnumerable<string> tags
)
public:
virtual Task<NotificationOutcome^>^ SendAsync(
IPushMessage^ message,
IEnumerable<String^>^ tags
)
abstract SendAsync :
message:IPushMessage *
tags:IEnumerable<string> -> Task<NotificationOutcome>
override SendAsync :
message:IPushMessage *
tags:IEnumerable<string> -> Task<NotificationOutcome>
Public Overridable Function SendAsync (
message As IPushMessage,
tags As IEnumerable(Of String)
) As Task(Of NotificationOutcome)
Parameters
message
Type: Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessageThe notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.
tags
Type: System.Collections.Generic.IEnumerable<String>The set of tags to use for this notification.
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