NotificationData Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NotificationData() |
Creates a new NotificationData. |
NotificationData(IIterable<KeyValuePair<String,String>>) |
Creates a new NotificationData that contains the specified values. |
NotificationData(IIterable<KeyValuePair<String,String>>, UInt32) |
Creates a new NotificationData that contains the specified values and the specified sequence number. |
NotificationData()
Creates a new NotificationData.
public:
NotificationData();
NotificationData();
public NotificationData();
function NotificationData()
Public Sub New ()
Applies to
NotificationData(IIterable<KeyValuePair<String,String>>)
Creates a new NotificationData that contains the specified values.
public:
NotificationData(IIterable<IKeyValuePair<Platform::String ^, Platform::String ^> ^> ^ initialValues);
NotificationData(IIterable<IKeyValuePair<winrt::hstring, winrt::hstring const&>> const& initialValues);
public NotificationData(IEnumerable<KeyValuePair<string,string>> initialValues);
function NotificationData(initialValues)
Public Sub New (initialValues As IEnumerable(Of KeyValuePair(Of String, String)))
Parameters
- initialValues
-
IIterable<IKeyValuePair<Platform::String,Platform::String>>
IIterable<IKeyValuePair<winrt::hstring,winrt::hstring>>
A collection of keys and values for the new NotificationData, such as "progressValue", "0".
Applies to
NotificationData(IIterable<KeyValuePair<String,String>>, UInt32)
Creates a new NotificationData that contains the specified values and the specified sequence number.
public:
NotificationData(IIterable<IKeyValuePair<Platform::String ^, Platform::String ^> ^> ^ initialValues, unsigned int sequenceNumber);
NotificationData(IIterable<IKeyValuePair<winrt::hstring, winrt::hstring const&>> const& initialValues, uint32_t const& sequenceNumber);
public NotificationData(IEnumerable<KeyValuePair<string,string>> initialValues, uint sequenceNumber);
function NotificationData(initialValues, sequenceNumber)
Public Sub New (initialValues As IEnumerable(Of KeyValuePair(Of String, String)), sequenceNumber As UInteger)
Parameters
- initialValues
-
IIterable<IKeyValuePair<Platform::String,Platform::String>>
IIterable<IKeyValuePair<winrt::hstring,winrt::hstring>>
A collection of keys and values for the new NotificationData, such as "progressValue", "0".
- sequenceNumber
-
UInt32
unsigned int
uint32_t
A value greater than or equal to 0 that specifies the sequence number of the new notification data. When multiple NotificationData objects are received, the system displays the NotificationData with the greatest non-zero number. Setting this value to 0 causes it to always displays.