ToastNotificationManagerForUser Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates ToastNotifier objects that you use to raise toast notifications for the bound user. This class also provides access to the XML content of the system-provided toast templates so that you can customize that content for use in your notifications.
public ref class ToastNotificationManagerForUser sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ToastNotificationManagerForUser final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationManagerForUser final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ToastNotificationManagerForUser
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationManagerForUser
Public NotInheritable Class ToastNotificationManagerForUser
- Inheritance
- Attributes
Windows requirements
| Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Remarks
Version history
| Windows version | SDK version | Value added |
|---|---|---|
| 1703 | 15063 | GetHistoryForToastCollectionIdAsync |
| 1703 | 15063 | GetToastCollectionManager |
| 1703 | 15063 | GetToastCollectionManager(String) |
| 1703 | 15063 | GetToastNotifierForToastCollectionIdAsync |
Properties
| History |
Gets the ToastNotificationHistory object. |
| NotificationMode |
Gets a value that indicates the current notification mode for the associated user which determines which notifications are displayed. |
| User |
Gets the user that receives the toast notifications created by this object. |
Methods
| CreateToastNotifier() |
Creates a new ToastNotifier for the calling application and the bound user that lets you raise a toast notification. |
| CreateToastNotifier(String) |
Creates a new ToastNotification for the bound user and the specified app, usually another app in the same package. |
| GetHistoryForToastCollectionIdAsync(String) |
Starts the retrieval of notification history for the specified notification group. |
| GetToastCollectionManager() |
Creates a ToastCollectionManager that you can use to save, update, and clear notification groups for the current app. |
| GetToastCollectionManager(String) |
Creates a ToastCollectionManager that you can use to save, update, and clear notification groups for the specified app. |
| GetToastNotifierForToastCollectionIdAsync(String) |
Creates a new ToastNotification for the bound user and app for the specified notification group. |
Events
| NotificationModeChanged |
Occurs when the value of ToastNotificationManagerForUser.NotificationMode property changes. |