CheckBox.LoadViewState(Object) 方法
定义
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
包含控件的已保存视图状态值的对象。An object that contains the saved view state values for the control.
注解
此方法主要由 .NET Framework 基础结构使用,不应在代码中直接使用。This method is used primarily 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.
LoadViewState方法 CheckBox 从方法保存的上一个页请求还原对象的视图状态信息 SaveViewState 。The LoadViewState method restores view-state information for the CheckBox object from a previous page request that was saved by the SaveViewState method.