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);
member this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>

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);
member this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>

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 at least 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);
member this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>

Parameters

notification
Notification

The notification.

scheduledTime
DateTimeOffset

The scheduled time.

tagExpression
String

The tag expression.

Returns

A task that represents the asynchronous operation.

Applies to