Share via


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

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