语言

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 对象。

注解

Important

应用必须在调用 Show 之前调用 Register。

适用于