ToastNotifier.Update Method

Definition

Overloads

Update(NotificationData, String)

Updates the existing toast notification that has the specified tag.

Update(NotificationData, String, String)

Updates the existing toast notification that has the specified tag and belongs to the specified notification group.

Update(NotificationData, String)

Updates the existing toast notification that has the specified tag.

public:
 virtual NotificationUpdateResult Update(NotificationData ^ data, Platform::String ^ tag) = Update;
/// [Windows.Foundation.Metadata.Overload("UpdateWithTag")]
NotificationUpdateResult Update(NotificationData const & data, winrt::hstring const & tag);
[Windows.Foundation.Metadata.Overload("UpdateWithTag")]
public NotificationUpdateResult Update(NotificationData data, string tag);
function update(data, tag)
Public Function Update (data As NotificationData, tag As String) As NotificationUpdateResult

Parameters

data
NotificationData

An object that contains the updated info.

tag
String

The identifier of the toast notification to update.

Returns

NotificationUpdateResult

A value that indicates the result of the update (failure, success, etc).

Attributes

Windows 10 requirements

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

Applies to

Update(NotificationData, String, String)

Updates the existing toast notification that has the specified tag and belongs to the specified notification group.

public:
 virtual NotificationUpdateResult Update(NotificationData ^ data, Platform::String ^ tag, Platform::String ^ group) = Update;
/// [Windows.Foundation.Metadata.Overload("UpdateWithTagAndGroup")]
NotificationUpdateResult Update(NotificationData const & data, winrt::hstring const & tag, winrt::hstring const & group);
[Windows.Foundation.Metadata.Overload("UpdateWithTagAndGroup")]
public NotificationUpdateResult Update(NotificationData data, string tag, string group);
function update(data, tag, group)
Public Function Update (data As NotificationData, tag As String, group As String) As NotificationUpdateResult

Parameters

data
NotificationData

An object that contains the updated info.

tag
String

The identifier of the toast notification to update.

group
String

The ID of the ToastCollection that contains the notification.

Returns

NotificationUpdateResult

A value that indicates the result of the update (failure, success, etc).

Attributes

Windows 10 requirements

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

Applies to