AppNotificationManager.RemoveByIdAsync(UInt32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
非同步移除通知中心(在 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
參數
傳回
非同步動作。