ToastCollection 类

定义

表示特定应用的一组通知。

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
继承
Object Platform::Object IInspectable ToastCollection
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

使用 ToastCollectionManager 保存、更新和删除 ToastCollection 对象。

构造函数

ToastCollection(String, String, String, Uri)

创建新的 Toast 通知组。

属性

DisplayName

获取或设置在操作中心中显示的组标题。

Icon

获取或设置在操作中心中的组标题旁边显示的图标。

Id

获取此通知组的 ID。

LaunchArgs

获取或设置在操作中心中单击通知组标题时提供给应用的启动参数。

适用于

另请参阅