Dela via


NotificationData Class

Definition

Stores data for display in a toast notification.

public ref class NotificationData sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Notifications.INotificationDataFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class NotificationData final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Notifications.INotificationDataFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class NotificationData
function NotificationData(initialValues, sequenceNumber)
Public NotInheritable Class NotificationData
Inheritance
Object Platform::Object IInspectable NotificationData
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Constructors

NotificationData()

Creates a new NotificationData.

NotificationData(IIterable<KeyValuePair<String,String>>, UInt32)

Creates a new NotificationData that contains the specified values and the specified sequence number.

NotificationData(IIterable<KeyValuePair<String,String>>)

Creates a new NotificationData that contains the specified values.

Properties

SequenceNumber

Gets or sets the sequence number of this notification data. The system uses the sequence number to determine whether the notification data is out-of-date.

Values

Gets the collection of keys and values for the new NotificationData, such as "progressValue", "0".

Applies to

See also