PushClient.SendNotificationAsync 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
SendNotificationAsync(Notification, IEnumerable<String>) |
Makes NotificationHubClient send operation mockable. |
SendNotificationAsync(Notification, String) |
Makes NotificationHubClient send operation mockable. |
SendNotificationAsync(Notification, IEnumerable<String>)
Makes NotificationHubClient send operation mockable.
protected virtual System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Parameters
- notification
- Notification
The notification to send.
- tags
- System.Collections.Generic.IEnumerable<System.String>
The set of tags to use for this notification.
Returns
- System.Threading.Tasks.Task<NotificationOutcome>
A System.Threading.Tasks.Task`1 representing the notification send operation.
Applies to
SendNotificationAsync(Notification, String)
Makes NotificationHubClient send operation mockable.
protected virtual System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, string tagExpression);
abstract member SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Parameters
- notification
- Notification
The notification to send.
- tagExpression
- System.String
A tag expression representing the combination of tags to use for this notification.
Returns
- System.Threading.Tasks.Task<NotificationOutcome>
A System.Threading.Tasks.Task`1 representing the notification send operation.