NotificationHubClient.ScheduleNotificationAsync
Method
Definition
Overloads
| ScheduleNotificationAsync(Notification, DateTimeOffset) |
Schedules the notification asynchronously. |
| ScheduleNotificationAsync(Notification, DateTimeOffset, IEnumerable<String>) |
Schedules the notification asynchronously. |
| ScheduleNotificationAsync(Notification, DateTimeOffset, String) |
Schedules the notification asynchronously. |
ScheduleNotificationAsync(Notification, DateTimeOffset)
Schedules the notification asynchronously.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime);
Parameters
- notification
- Notification
The notification.
- scheduledTime
- DateTimeOffset
The scheduled time.
Returns
A task that represents the asynchronous operation.
ScheduleNotificationAsync(Notification, DateTimeOffset, IEnumerable<String>)
Schedules the notification asynchronously.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, System.Collections.Generic.IEnumerable<string> tags);
Parameters
- notification
- Notification
The notification.
- scheduledTime
- DateTimeOffset
The scheduled time.
- tags
- IEnumerable<String>
The tags.
Returns
A task that represents the asynchronous operation.
Exceptions
Thrown when tags object is null
tags argument should contain atleast one tag
ScheduleNotificationAsync(Notification, DateTimeOffset, String)
Schedules the notification asynchronously.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, string tagExpression);
Parameters
- notification
- Notification
The notification.
- scheduledTime
- DateTimeOffset
The scheduled time.
- tagExpression
- String
The tag expression.
Returns
A task that represents the asynchronous operation.