Notifier. Hide(ToastNotification) Method
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.
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);
Public Sub Hide (notification As ToastNotification)
The object that specifies the toast to hide.
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.