语言

AppNotificationManager.RemoveByIdAsync(UInt32) 方法

定义

从通知中心异步删除具有指定 ID 的应用通知(称为Windows 10中的操作中心)。

注释

AppNotificationManager 类依赖于 Singleton 包。 由于这种依赖关系,如果从 自包含应用调用这些 API,请注意一些注意事项。 有关详细信息和详细信息,请参阅 对其他 MSIX 包的依赖项。

public:
 virtual IAsyncAction ^ RemoveByIdAsync(unsigned int notificationId) = RemoveByIdAsync;
IAsyncAction RemoveByIdAsync(uint32_t const& notificationId);
public IAsyncAction RemoveByIdAsync(uint notificationId);
function removeByIdAsync(notificationId)
Public Function RemoveByIdAsync (notificationId As UInteger) As IAsyncAction

参数

notificationId
UInt32

unsigned int

uint32_t

要删除的应用通知的唯一标识符。 ID 由平台设置,可以使用 Id 属性进行访问。

返回

异步操作。

适用于