你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PushClient.SendNotificationAsync 方法

定义

重载

SendNotificationAsync(Notification, IEnumerable<String>)

使 Microsoft.ServiceBus.Notifications.NotificationHubClient 发送操作可模拟。

SendNotificationAsync(Notification, String)

使 Microsoft.ServiceBus.Notifications.NotificationHubClient 发送操作可模拟。

SendNotificationAsync(Notification, IEnumerable<String>)

使 Microsoft.ServiceBus.Notifications.NotificationHubClient 发送操作可模拟。

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)

参数

notification
Microsoft.ServiceBus.Notifications.Notification

要发送的通知。

tags
IEnumerable<String>

要用于此通知的标记集。

返回

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

表示 Task<TResult> 通知发送操作的 。

适用于

SendNotificationAsync(Notification, String)

使 Microsoft.ServiceBus.Notifications.NotificationHubClient 发送操作可模拟。

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)

参数

notification
Microsoft.ServiceBus.Notifications.Notification

要发送的通知。

tagExpression
String

表示要用于此通知的标记组合的标记表达式。

返回

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

表示 Task<TResult> 通知发送操作的 。

适用于