DataPager.LoadViewState(Object) DataPager.LoadViewState(Object) DataPager.LoadViewState(Object) DataPager.LoadViewState(Object) Method

定義

還原在上一個頁面要求時,DataPager 方法為 SaveViewState() 控制項儲存的檢視狀態資訊。Restores view-state information for the DataPager control that was saved by the SaveViewState() method during a previous page request.

protected:
 override void LoadViewState(System::Object ^ savedState);
protected override void LoadViewState (object savedState);
override this.LoadViewState : obj -> unit
Protected Overrides Sub LoadViewState (savedState As Object)

參數

savedState
Object Object Object Object

表示要還原之狀態的物件。An object that represents the state to be restored.

備註

這個方法主要是由.NET Framework.NET Framework基礎結構所使用, 而且不能直接從程式碼使用。This method is primarily used by the .NET Framework.NET Framework infrastructure and is not intended to be used directly from your code. 不過, 控制項開發人員可以覆寫這個方法, 以指定自訂伺服器控制項還原其檢視狀態的方式。However, control developers can override this method to specify how a custom server control restores its view state. 如需詳細資訊, 請參閱ASP.NET 狀態管理總覽For more information, see ASP.NET State Management Overview.

適用於

另請參閱