Style.LoadViewState(Object) 方法

定义

将视图状态加载到 State 对象的 Style 中。Loads the view state into the State of the Style object. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

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

参数

state
Object

包含视图状态信息的对象。The object containing the view-state information.

实现

注解

此方法主要由 .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.

适用于

另请参阅