ToastNotificationManagerForUser ToastNotificationManagerForUser ToastNotificationManagerForUser ToastNotificationManagerForUser Class

Definition

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 : sealed class ToastNotificationManagerForUser : IToastNotificationManagerForUser, IToastNotificationManagerForUser2public sealed class ToastNotificationManagerForUser : IToastNotificationManagerForUser, IToastNotificationManagerForUser2Public NotInheritable Class ToastNotificationManagerForUser Implements IToastNotificationManagerForUser, IToastNotificationManagerForUser2// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Properties

History History History History

Gets the ToastNotificationHistory object.

public : ToastNotificationHistory History { get; }public ToastNotificationHistory History { get; }Public ReadOnly Property History As ToastNotificationHistory// You can use this property in JavaScript.

User User User User

Gets the user that receives the toast notifications created by this object.

public : User User { get; }public User User { get; }Public ReadOnly Property User As User// You can use this property in JavaScript.
Value
User User User User

The user that receives the toast notifications created by this object.

Methods

CreateToastNotifier() CreateToastNotifier() CreateToastNotifier() CreateToastNotifier()

Creates a new ToastNotifier for the calling application and the bound user that lets you raise a toast notification.

public : ToastNotifier CreateToastNotifier()public ToastNotifier CreateToastNotifier()Public Function CreateToastNotifier() As ToastNotifier// You can use this method in JavaScript.
Returns

The object you will use to send the toast notification to the app for the bound user.

See Also

CreateToastNotifier(String) CreateToastNotifier(String) CreateToastNotifier(String) CreateToastNotifier(String)

Creates a new ToastNotification for the bound user and the specified app, usually another app in the same package.

public : ToastNotifier CreateToastNotifier(PlatForm::String applicationId)public ToastNotifier CreateToastNotifier(String applicationId)Public Function CreateToastNotifier(applicationId As String) As ToastNotifier// You can use this method in JavaScript.
Parameters
applicationId
PlatForm::String String String String

The unique ID of the app.

Note

You can't send a toast notification to a secondary tile, so this must be the ID of an app tile.

Returns

The object you will use to send the toast notification to the tile.

See Also

GetHistoryForToastCollectionIdAsync(String) GetHistoryForToastCollectionIdAsync(String) GetHistoryForToastCollectionIdAsync(String) GetHistoryForToastCollectionIdAsync(String)

Starts the retrieval of notification history for the specified notification group.

public : IAsyncOperation<ToastNotificationHistory> GetHistoryForToastCollectionIdAsync(PlatForm::String collectionId)public IAsyncOperation<ToastNotificationHistory> GetHistoryForToastCollectionIdAsync(String collectionId)Public Function GetHistoryForToastCollectionIdAsync(collectionId As String) As IAsyncOperation( Of ToastNotificationHistory )// You can use this method in JavaScript.
Parameters
collectionId
PlatForm::String String String String

The ID of the notification group whose history you want to retrieve.

Returns
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

GetToastCollectionManager() GetToastCollectionManager() GetToastCollectionManager() GetToastCollectionManager()

Creates a ToastCollectionManager that you can use to save, update, and clear notification groups for the current app.

public : ToastCollectionManager GetToastCollectionManager()public ToastCollectionManager GetToastCollectionManager()Public Function GetToastCollectionManager() As ToastCollectionManager// You can use this method in JavaScript.
Returns

An object you can use to save, update, and clear notification groups.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

GetToastCollectionManager(String) GetToastCollectionManager(String) GetToastCollectionManager(String) GetToastCollectionManager(String)

Creates a ToastCollectionManager that you can use to save, update, and clear notification groups for the specified app.

public : ToastCollectionManager GetToastCollectionManager(PlatForm::String appId)public ToastCollectionManager GetToastCollectionManager(String appId)Public Function GetToastCollectionManager(appId As String) As ToastCollectionManager// You can use this method in JavaScript.
Parameters
appId
PlatForm::String String String String

The ID of the app whose notification groups you want to manipulate.

Returns

An object you can use to save, update, and clear notification groups.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

GetToastNotifierForToastCollectionIdAsync(String) GetToastNotifierForToastCollectionIdAsync(String) GetToastNotifierForToastCollectionIdAsync(String) GetToastNotifierForToastCollectionIdAsync(String)

Creates a new ToastNotification for the bound user and app for the specified notification group.

public : IAsyncOperation<ToastNotifier> GetToastNotifierForToastCollectionIdAsync(PlatForm::String collectionId)public IAsyncOperation<ToastNotifier> GetToastNotifierForToastCollectionIdAsync(String collectionId)Public Function GetToastNotifierForToastCollectionIdAsync(collectionId As String) As IAsyncOperation( Of ToastNotifier )// You can use this method in JavaScript.
Parameters
collectionId
PlatForm::String String String String

The ID of the ToastNotificationCollection that represents the notification group you want to send.

Returns
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)