DataPagerField.LoadViewState(Object) 方法

定義

還原先前儲存的檢視狀態資訊。Restores view-state information that was saved previously.

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

參數

savedState
Object

控制項的已儲存檢視狀態值。The saved view-state values for the control.

實作

備註

方法會在前一個頁面要求期間, DataPagerField還原方法所儲存之物件的檢視狀態資訊。SaveViewState LoadViewStateThe LoadViewState method restores view-state information for the DataPagerField object that was saved by the SaveViewState method during a previous page request.

這個方法主要是由.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.

適用於

另請參閱