类 UserNotificationChannel
public sealed class UserNotificationChannel : IUserNotificationChannel
此类提供通知更改读取器,用于处理应用程序的用户通知的接收和管理。
方法
CreateReader ()
创建用户通知读取器以接收和管理应用服务器发布的用户通知。
public UserNotificationReader CreateReader()
CreateReader (UserNotificationReaderOptions)
使用选项创建用户通知读取器
public UserNotificationReader CreateReader(UserNotificationReaderOptions options)
CreateReaderWithState (字符串)
创建用户通知读取器以接收和管理应用服务器发布的用户通知。 读取器将从提供的跟踪状态开始。
public UserNotificationReader CreateReaderWithState(String readerState)
GetUserNotificationAsync (字符串)
根据 ID 获取用户通知。
public IAsyncOperation<UserNotification> GetUserNotificationAsync(String notificationId)
DeleteUserNotificationAsync (字符串)
根据 ID 获取用户通知。
public IAsyncOperation<UserNotificationUpdateResult> DeleteUserNotificationAsync(String notificationId)
SyncScope ()
获取此用户通知通道的同步范围。
public static IUserDataFeedSyncScope SyncScope()
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈