ToastNotifier.Update Method
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
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
Platform::String
winrt::hstring
The identifier of the toast notification to update.
Returns
A value that indicates the result of the update (failure, success, etc).
- Attributes
Windows 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
Platform::String
winrt::hstring
The identifier of the toast notification to update.
- group
-
String
Platform::String
winrt::hstring
The ID of the ToastCollection that contains the notification.
Returns
A value that indicates the result of the update (failure, success, etc).
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|