PushClient.SendAsync Method
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
SendAsync(IPushMessage) |
Sends a notification to the Notification Hub. |
SendAsync(IPushMessage, IEnumerable<String>) |
Sends a notification to the Notification Hub with a given tag expression. |
SendAsync(IPushMessage, String) |
Sends a notification to the Notification Hub with a given tag expression. |
SendAsync(IPushMessage)
Sends a notification to the Notification Hub.
public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage) As Task(Of NotificationOutcome)
Parameters
- message
- IPushMessage
The notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.
Returns
A Task<TResult> representing the notification send operation.
Applies to
SendAsync(IPushMessage, IEnumerable<String>)
Sends a notification to the Notification Hub with a given tag expression.
public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)
Parameters
- message
- IPushMessage
The notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.
- tags
- IEnumerable<String>
The set of tags to use for this notification.
Returns
A Task<TResult> representing the notification send operation.
Applies to
SendAsync(IPushMessage, String)
Sends a notification to the Notification Hub with a given tag expression.
public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message, string tagExpression);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tagExpression As String) As Task(Of NotificationOutcome)
Parameters
- message
- IPushMessage
The notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.
- tagExpression
- String
A tag expression representing the combination of tags to use for this notification.
Returns
A Task<TResult> representing the notification send operation.
Applies to
Azure SDK for .NET