ToastNotifier.Hide(ToastNotification) Method

Definition

Removes the specified toast notification from the screen.

public:
 virtual void Hide(ToastNotification ^ notification) = Hide;
void Hide(ToastNotification const& notification);
public void Hide(ToastNotification notification);
function hide(notification)
Public Sub Hide (notification As ToastNotification)

Parameters

notification
ToastNotification

The object that specifies the toast to hide.

Remarks

Call Hide if the situation or action that caused the app to raise the toast is no longer an issue. This method should only be called when the app is in the foreground.

For Windows Phone 8.x app: this method also removes the toast notification from the action center.

Applies to