Compartilhar via


NotificationHubClient.ScheduleNotificationAsync Método

Definição

Sobrecargas

ScheduleNotificationAsync(Notification, DateTimeOffset)

Agenda a notificação de forma assíncrona.

ScheduleNotificationAsync(Notification, DateTimeOffset, IEnumerable<String>)

Agenda a notificação de forma assíncrona.

ScheduleNotificationAsync(Notification, DateTimeOffset, String)

Agenda a notificação de forma assíncrona.

ScheduleNotificationAsync(Notification, DateTimeOffset, CancellationToken)

Agenda a notificação de forma assíncrona.

ScheduleNotificationAsync(Notification, DateTimeOffset, IEnumerable<String>, CancellationToken)

Agenda a notificação de forma assíncrona.

ScheduleNotificationAsync(Notification, DateTimeOffset, String, CancellationToken)

Agenda a notificação de forma assíncrona.

ScheduleNotificationAsync(Notification, DateTimeOffset)

Agenda a notificação de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime);
abstract member ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
override this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
Public Function ScheduleNotificationAsync (notification As Notification, scheduledTime As DateTimeOffset) As Task(Of ScheduledNotification)

Parâmetros

notification
Notification

A notificação.

scheduledTime
DateTimeOffset

A hora agendada.

Retornos

Uma tarefa que representa a operação assíncrona.

Implementações

Aplica-se a

ScheduleNotificationAsync(Notification, DateTimeOffset, IEnumerable<String>)

Agenda a notificação de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, System.Collections.Generic.IEnumerable<string> tags);
abstract member ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
override this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
Public Function ScheduleNotificationAsync (notification As Notification, scheduledTime As DateTimeOffset, tags As IEnumerable(Of String)) As Task(Of ScheduledNotification)

Parâmetros

notification
Notification

A notificação.

scheduledTime
DateTimeOffset

A hora agendada.

tags
IEnumerable<String>

As marcas.

Retornos

Uma tarefa que representa a operação assíncrona.

Implementações

Exceções

Gerado quando o objeto tags é nulo

O argumento tags deve conter pelo menos uma marca

Aplica-se a

ScheduleNotificationAsync(Notification, DateTimeOffset, String)

Agenda a notificação de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, string tagExpression);
abstract member ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
override this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
Public Function ScheduleNotificationAsync (notification As Notification, scheduledTime As DateTimeOffset, tagExpression As String) As Task(Of ScheduledNotification)

Parâmetros

notification
Notification

A notificação.

scheduledTime
DateTimeOffset

A hora agendada.

tagExpression
String

A expressão de marca.

Retornos

Uma tarefa que representa a operação assíncrona.

Implementações

Aplica-se a

ScheduleNotificationAsync(Notification, DateTimeOffset, CancellationToken)

Agenda a notificação de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, System.Threading.CancellationToken cancellationToken);
abstract member ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
override this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
Public Function ScheduleNotificationAsync (notification As Notification, scheduledTime As DateTimeOffset, cancellationToken As CancellationToken) As Task(Of ScheduledNotification)

Parâmetros

notification
Notification

A notificação.

scheduledTime
DateTimeOffset

A hora agendada.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Uma tarefa que representa a operação assíncrona.

Implementações

Aplica-se a

ScheduleNotificationAsync(Notification, DateTimeOffset, IEnumerable<String>, CancellationToken)

Agenda a notificação de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, System.Collections.Generic.IEnumerable<string> tags, System.Threading.CancellationToken cancellationToken);
abstract member ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
override this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
Public Function ScheduleNotificationAsync (notification As Notification, scheduledTime As DateTimeOffset, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of ScheduledNotification)

Parâmetros

notification
Notification

A notificação.

scheduledTime
DateTimeOffset

A hora agendada.

tags
IEnumerable<String>

As marcas.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Uma tarefa que representa a operação assíncrona.

Implementações

Exceções

Gerado quando o objeto tags é nulo

O argumento tags deve conter pelo menos uma marca

Aplica-se a

ScheduleNotificationAsync(Notification, DateTimeOffset, String, CancellationToken)

Agenda a notificação de forma assíncrona.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification> ScheduleNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, DateTimeOffset scheduledTime, string tagExpression, System.Threading.CancellationToken cancellationToken);
abstract member ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
override this.ScheduleNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * DateTimeOffset * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.ScheduledNotification>
Public Function ScheduleNotificationAsync (notification As Notification, scheduledTime As DateTimeOffset, tagExpression As String, cancellationToken As CancellationToken) As Task(Of ScheduledNotification)

Parâmetros

notification
Notification

A notificação.

scheduledTime
DateTimeOffset

A hora agendada.

tagExpression
String

A expressão de marca.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Uma tarefa que representa a operação assíncrona.

Implementações

Aplica-se a