类 UserNotificationReader
public sealed class UserNotificationReader : IUserNotificationReader
此类提供新的传入用户通知和用户通知更新。 它还提供对连接设备平台中保留的用户通知集合的访问权限。
方法
ReadBatchAsync (Int32)
创建用户通知读取器以接收和管理应用服务器发布的用户通知。
public IAsyncOperation<IList<UserNotification>> ReadBatchAsync(Int32 maxBatchSize)
事件
DataChanged
当读取器完成与服务器的同步并具有新的更改时引发 - 新的传入 UserNotifications 或 UserNotification 更新以通知应用。
public event TypedEventHandler<UserNotificationReader, DataChangedEventArgs> DataChanged