WebControl.LoadViewState(Object) WebControl.LoadViewState(Object) WebControl.LoadViewState(Object) WebControl.LoadViewState(Object) Method

定義

從使用 SaveViewState() 方法所儲存的先前要求來還原檢視狀態資訊。Restores view-state information from a previous request that was saved with the SaveViewState() method.

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 Object Object Object

物件,表示要還原的控制項狀態。An object that represents the control state to restore.

備註

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

方法會還原前SaveViewState一個要求期間所儲存的檢視狀態資訊。 LoadViewStateThe LoadViewState method restores the view-state information that was saved during a previous SaveViewState request. ViewState Style Attributes類別會覆寫基LoadViewState底方法,以處理、和屬性。 WebControlThe WebControl class overrides the base LoadViewState method to handle the ViewState, Style, and Attributes properties.

適用於

另請參閱