共用方式為


AppNotificationManager.Show(AppNotification) 方法

定義

在控制中心顯示指定的代理程式更新。

注意

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物件,表示要顯示的通知。

備註

重要

您的應用程式必須在呼叫Show之前呼叫Register

適用於