Share via


ToastCollection Classe

Définition

Représente un groupe de notifications pour une application particulière.

public ref class ToastCollection sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Notifications.IToastCollectionFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class ToastCollection final
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Notifications.IToastCollectionFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastCollection final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Notifications.IToastCollectionFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class ToastCollection
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Notifications.IToastCollectionFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastCollection
function ToastCollection(collectionId, displayName, launchArgs, iconUri)
Public NotInheritable Class ToastCollection
Héritage
Object Platform::Object IInspectable ToastCollection
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Remarques

Utilisez un Objet ToastCollectionManager pour enregistrer, mettre à jour et supprimer des objets ToastCollection.

Constructeurs

ToastCollection(String, String, String, Uri)

Crée un groupe de notifications toast.

Propriétés

DisplayName

Obtient ou définit le titre du groupe qui s’affiche dans le Centre de notifications.

Icon

Obtient ou définit l’icône qui s’affiche en regard du titre du groupe dans le Centre de notifications.

Id

Obtient l’ID de ce groupe de notifications.

LaunchArgs

Obtient ou définit les arguments de lancement fournis à l’application lorsque l’utilisateur clique sur le titre du groupe de notifications dans le Centre de notifications.

S’applique à

Voir aussi