語言

AppNotificationManager.Show(AppNotification) 方法

定義

在動作中心顯示指定的應用程式通知。

Note

AppNotificationManager 類別依賴 Singleton 套件。 因為這種依賴性,如果你從 自包含的應用程式呼叫這些 API,有幾點需要注意。 欲了解更多資訊與細節,請參閱 「附加 MSIX 套件的相依關係」。

public:
 virtual void Show(AppNotification ^ notification) = Show;
void Show(AppNotification const& notification);
public void Show(AppNotification notification);
function show(notification)
Public Sub Show (notification As AppNotification)

參數

notification
AppNotification

一個 AppNotification 物件,代表要顯示的通知。

備註

Important

您的應用程式 必須先註冊 ,再撥打 Show 服務。

適用於