共用方式為


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)

建立新的快顯通知群組。

屬性

DisplayName

取得或設定在控制中心中顯示的群組標題。

Icon

取得或設定顯示在控制中心群組標題旁的圖示。

Id

取得這個通知群組的識別碼。

LaunchArgs

取得或設定在控制中心按一下通知群組標題時,提供給應用程式的啟動引數。

適用於

另請參閱