你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NotificationRegistration 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
NotificationRegistration包含用于通过通知中心为推送通知注册设备的信息。
public class NotificationRegistration
type NotificationRegistration = class
Public Class NotificationRegistration
- 继承
-
NotificationRegistration
构造函数
NotificationRegistration() |
NotificationRegistration包含用于通过通知中心为推送通知注册设备的信息。 |
属性
DeviceId |
特定于给定平台的唯一标识符。 对于 Windows 推送通知服务 (WNS) 或 Microsoft 推送通知服务 (MPNS) 它是通道 URI,对于 Apple 推送通知服务,它是设备令牌,对于 Chrome 的 Google Cloud Messaging,它是注册 ID。 |
Expiration |
指示注册生存期的时间戳。 |
Headers |
注册时发送到 Windows 推送通知服务或 Microsoft 推送通知服务的其他 HTTP 标头。 |
Platform |
此注册的平台。 平台必须是以下值之一:wns、mpns、apns 或 gcm,其中 wns 代表“Windows 推送通知服务”,mpns 表示“Microsoft 推送通知服务”,apns 为“Apple Push Notification Service”,gcm 为“Google Cloud Messaging for Chrome”。 |
RegistrationId |
此注册的通知中心注册 ID。 |
Tags |
要用于此通知中心的标记集合。 |
TemplateBody |
允许将消息映射到特定于客户端的通知消息的模板。 |
TemplateName |
提供 的名称 TemplateBody。 如果 TemplateBody 设置了 ,则此字段是必需的。 |