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.

注解

LoadViewState方法在 DataPagerField 上一个页面请求期间还原由方法保存的对象的视图状态信息 SaveViewStateThe LoadViewState method restores view-state information for the DataPagerField object that was saved by the SaveViewState method during a previous page request.

此方法主要由 .NET Framework 基础结构使用,不应在代码中直接使用。This method is primarily used by the .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.

适用于

另请参阅