Share via


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 從某個內容片段巡覽到另一個內容時,就會引發 事件。 正在巡覽的內容會新增至返回流覽歷程記錄。 您可以使用自訂 CustomContentState 物件進行設定 ContentStateToSave ,以將狀態資訊與導覽歷程記錄中的內容產生關聯。

適用於