CustomContentState.Replay(NavigationService, NavigationMode) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當導航發生時,會被呼叫重新套用狀態給內容。
public:
abstract void Replay(System::Windows::Navigation::NavigationService ^ navigationService, System::Windows::Navigation::NavigationMode mode);
public abstract void Replay(System.Windows.Navigation.NavigationService navigationService, System.Windows.Navigation.NavigationMode mode);
abstract member Replay : System.Windows.Navigation.NavigationService * System.Windows.Navigation.NavigationMode -> unit
Public MustOverride Sub Replay (navigationService As NavigationService, mode As NavigationMode)
參數
- navigationService
- NavigationService
這些資料 NavigationService 由負責該內容 CustomContentState 的導航員擁有。
- mode
- NavigationMode
這條 NavigationMode 規則會明確說明所應用內容 CustomContentState 的導覽方式。
備註
Replay 當導航歷史中有相關 CustomContentState 物件的項目被導航時,會呼叫 。
當從抽象 CustomContentState 類別推導時, Replay 必須覆寫,儘管覆寫實作只需呼叫基底 Replay 方法即可。