PushClient.SendAsync Method (IPushMessage, 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,
string tagExpression
)
public:
virtual Task<NotificationOutcome^>^ SendAsync(
IPushMessage^ message,
String^ tagExpression
)
abstract SendAsync :
message:IPushMessage *
tagExpression:string -> Task<NotificationOutcome>
override SendAsync :
message:IPushMessage *
tagExpression:string -> Task<NotificationOutcome>
Public Overridable Function SendAsync (
message As IPushMessage,
tagExpression As String
) As Task(Of NotificationOutcome)
Parameters
message
Type: Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessageThe notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.
tagExpression
Type: System.StringA tag expression representing the combination 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