ToastNotifier.Hide(ToastNotification) 方法

定義

從畫面移除指定的快顯通知。

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)

參數

notification
ToastNotification

物件,指定要隱藏的快顯通知。

備註

如果導致應用程式引發快顯通知的情況或動作不再發生問題,請呼叫 Hide。 只有在應用程式位於前景時,才應該呼叫這個方法。

針對 Windows Phone 8.x 應用程式:此方法也會從控制中心移除快顯通知。

適用於