你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PushClient.SendAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SendAsync(IPushMessage) |
将通知发送到通知中心。 |
SendAsync(IPushMessage, IEnumerable<String>) |
使用给定标记表达式将通知发送到通知中心。 |
SendAsync(IPushMessage, String) |
使用给定标记表达式将通知发送到通知中心。 |
SendAsync(IPushMessage)
将通知发送到通知中心。
public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage) As Task(Of NotificationOutcome)
参数
- message
- IPushMessage
通知有效负载是 、 ApplePushMessage或 TemplatePushMessage中的WindowsPushMessage一个。
返回
Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
表示 Task<TResult> 通知发送操作的 。
适用于
SendAsync(IPushMessage, IEnumerable<String>)
使用给定标记表达式将通知发送到通知中心。
public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)
参数
- message
- IPushMessage
通知有效负载是 、 ApplePushMessage或 TemplatePushMessage中的WindowsPushMessage一个。
- tags
- IEnumerable<String>
要用于此通知的标记集。
返回
Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
表示 Task<TResult> 通知发送操作的 。
适用于
SendAsync(IPushMessage, String)
使用给定标记表达式将通知发送到通知中心。
public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message, string tagExpression);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tagExpression As String) As Task(Of NotificationOutcome)
参数
- message
- IPushMessage
通知有效负载是 、 ApplePushMessage或 TemplatePushMessage中的WindowsPushMessage一个。
- tagExpression
- String
表示要用于此通知的标记组合的标记表达式。
返回
Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
表示 Task<TResult> 通知发送操作的 。