WebPartZoneBase.LoadViewState(Object) 方法

定义

为某个区域加载以前保存的状态信息。Loads previously saved state information for a zone.

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

以前保存的状态。The previously saved state.

例外

savedState 对象的大小与当前视图状态对象的大小不相等。The size of the savedState object does not equal the size of the current view-state object.

注解

此方法主要由 .NET Framework 基础结构使用,不应在代码中直接使用。This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. 不过,您可以重写此方法以指定自定义服务器控件如何还原其视图状态。However, you 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 方法将重写基 WebZone.LoadViewState 方法,以加载派生自 WebPartZoneBase 类的区域中的谓词和谓词菜单的状态。The LoadViewState method overrides the base WebZone.LoadViewState method to load state for the verbs and the verbs menu in a zone derived from the WebPartZoneBase class.

适用于

另请参阅