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
System.DateTimeOffset

The scheduled time.

Returns

System.Threading.Tasks.Task<ScheduledNotification>

A task that represents the asynchronous operation.

Applies to

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
System.DateTimeOffset

The scheduled time.

tags
System.Collections.Generic.IEnumerable<System.String>

The tags.

Returns

System.Threading.Tasks.Task<ScheduledNotification>

A task that represents the asynchronous operation.

Exceptions

System.ArgumentNullException

Thrown when tags object is null

System.ArgumentException

tags argument should contain atleast one tag

Applies to

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
System.DateTimeOffset

The scheduled time.

tagExpression
System.String

The tag expression.

Returns

System.Threading.Tasks.Task<ScheduledNotification>

A task that represents the asynchronous operation.

Applies to