語言

NavigatingCancelEventArgs.ContentStateToSave 屬性

定義

取得或設定 CustomContentState 與所瀏覽頁面回溯歷史條目相關聯的物件。

public:
 property System::Windows::Navigation::CustomContentState ^ ContentStateToSave { System::Windows::Navigation::CustomContentState ^ get(); void set(System::Windows::Navigation::CustomContentState ^ value); };
public System.Windows.Navigation.CustomContentState ContentStateToSave { get; set; }
member this.ContentStateToSave : System.Windows.Navigation.CustomContentState with get, set
Public Property ContentStateToSave As CustomContentState

屬性值

CustomContentState與所瀏覽頁面的回溯歷史條目相關聯的物件。

備註

Navigating 事件會在從一個內容切換到另一個內容時被觸發。 所瀏覽的內容會被加入回溯導航歷史。 你可以用自訂ContentStateToSave物件設定CustomContentState,將狀態資訊與導航歷史中的內容關聯起來。

適用於