語言

AppNotificationManager.RemoveByIdAsync(UInt32) 方法

定義

非同步移除通知中心(在 Windows 10 稱為動作中心)中指定 ID 的應用程式通知。

Note

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 屬性存取。

傳回

非同步動作。

適用於