共用方式為


PushClient.SendNotificationAsync Method

Definition

Overloads

SendNotificationAsync(Notification, IEnumerable<String>)

Makes Microsoft.ServiceBus.Notifications.NotificationHubClient send operation mockable.

SendNotificationAsync(Notification, String)

Makes Microsoft.ServiceBus.Notifications.NotificationHubClient send operation mockable.

SendNotificationAsync(Notification, IEnumerable<String>)

Makes Microsoft.ServiceBus.Notifications.NotificationHubClient send operation mockable.

protected virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendNotificationAsync (Microsoft.ServiceBus.Notifications.Notification notification, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendNotificationAsync : Microsoft.ServiceBus.Notifications.Notification * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.ServiceBus.Notifications.Notification * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Protected Overridable Function SendNotificationAsync (notification As Notification, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)

Parameters

notification
Microsoft.ServiceBus.Notifications.Notification

The notification to send.

tags
IEnumerable<String>

The set of tags to use for this notification.

Returns

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

A Task<TResult> representing the notification send operation.

Applies to

SendNotificationAsync(Notification, String)

Makes Microsoft.ServiceBus.Notifications.NotificationHubClient send operation mockable.

protected virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendNotificationAsync (Microsoft.ServiceBus.Notifications.Notification notification, string tagExpression);
abstract member SendNotificationAsync : Microsoft.ServiceBus.Notifications.Notification * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.ServiceBus.Notifications.Notification * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Protected Overridable Function SendNotificationAsync (notification As Notification, tagExpression As String) As Task(Of NotificationOutcome)

Parameters

notification
Microsoft.ServiceBus.Notifications.Notification

The notification to send.

tagExpression
String

A tag expression representing the combination of tags to use for this notification.

Returns

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

A Task<TResult> representing the notification send operation.

Applies to