ToastNotificationHistory.Clear 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
Clear() |
Removes all notifications sent by this app from action center. |
Clear(String) |
Removes all notifications from action center that were sent by another app inside the same app package. |
Clear()
Removes all notifications sent by this app from action center.
public:
virtual void Clear() = Clear;
/// [Windows.Foundation.Metadata.Overload("Clear")]
void Clear();
[Windows.Foundation.Metadata.Overload("Clear")]
public void Clear();
function clear()
Public Sub Clear ()
- Attributes
See also
Applies to
Clear(String)
Removes all notifications from action center that were sent by another app inside the same app package.
public:
virtual void Clear(Platform::String ^ applicationId) = Clear;
/// [Windows.Foundation.Metadata.Overload("ClearWithId")]
void Clear(winrt::hstring const& applicationId);
[Windows.Foundation.Metadata.Overload("ClearWithId")]
public void Clear(string applicationId);
function clear(applicationId)
Public Sub Clear (applicationId As String)
Parameters
- applicationId
-
String
Platform::String
winrt::hstring
The ID of the app inside the app package whose notifications are to be deleted.
- Attributes