你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ApplePushMessage 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
可帮助 ApplePushMessage 生成面向 Apple 推送通知服务的通知有效负载。 可以使用 类发送 PushClient 通知。
[System.Serializable]
public class ApplePushMessage : System.Collections.Generic.Dictionary<string,object>, Microsoft.Azure.Mobile.Server.Notifications.IPushMessage
[<System.Serializable>]
type ApplePushMessage = class
inherit Dictionary<string, obj>
interface IPushMessage
Public Class ApplePushMessage
Inherits Dictionary(Of String, Object)
Implements IPushMessage
- 继承
-
ApplePushMessage
- 属性
- 实现
构造函数
ApplePushMessage() |
初始化 类的新实例, ApplePushMessage 以创建面向 Apple 推送通知服务的通知消息。 在消息上设置适当的属性,并通过 PushClient提交。 |
ApplePushMessage(SerializationInfo, StreamingContext) |
使用指定的序列化信息和流上下文初始化 ApplePushMessage 类的新实例。 |
ApplePushMessage(String, Nullable<TimeSpan>) |
使用给定 |
属性
Aps |
获取此 ApsProperties 的 ApplePushMessage。 |
Expiration |
设置或获取通知的生存期。 在生存期结束时,通知不再有效,可以放弃。 如果此值为非 null,则 APN 将存储通知并尝试至少传递一次通知。 指定 null 以指示通知立即过期,并且 APN 根本不应存储通知。 |
JsonPayload |
作为直接初始化 ApplePushMessage 来生成通知的替代方法,可以提供完整的 JSON 表示形式,该表示形式将不更改地发送到通知中心。 |
方法
ToString() |
提供此的 JSON 编码表示形式 ApplePushMessage |
扩展方法
TryRemove<TKey,TValue>(Dictionary<TKey,TValue>, TKey, TValue) |
删除与指定键关联的值。 |