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

ApsProperties 类

定义

“aps”属性包含面向 Apple 推送通知服务 (APNS) 的通知定义。 它旨在从 ApplePushMessage 类中使用。

[System.Serializable]
public class ApsProperties : System.Collections.Generic.Dictionary<string,object>
[<System.Serializable>]
type ApsProperties = class
    inherit Dictionary<string, obj>
Public Class ApsProperties
Inherits Dictionary(Of String, Object)
继承
ApsProperties
属性

构造函数

ApsProperties()

初始化 ApsProperties 类的新实例。

ApsProperties(SerializationInfo, StreamingContext)

使用指定的序列化信息和流上下文初始化 ApsProperties 类的新实例。

属性

Alert

警报消息作为单个字符串。 有关更复杂的警报消息选项,请使用 AlertProperties

AlertProperties

警报消息作为字典,其中包含描述警报的其他属性,例如本地化信息、要显示的图像等。如果警报只是一个字符串,请使用 Alert

Badge

要显示为应用程序图标锁屏提醒的数字。 如果此属性不存在,则不会更改锁屏提醒。 若要删除锁屏提醒,请将此属性的值设置为 0。

ContentAvailable

为此键提供值 1 以指示新内容可用。 这用于支持报刊应用和后台内容下载。

Sound

应用程序捆绑包中声音文件的名称。 此文件中的声音将作为警报播放。 如果声音文件不存在或者指定了默认值,则会播放默认警报声。 音频必须采用与系统声音兼容的音频数据格式之一;

扩展方法

TryRemove<TKey,TValue>(Dictionary<TKey,TValue>, TKey, TValue)

删除与指定键关联的值。

适用于