StateBag.IStateManager.LoadViewState(Object) 方法

定義

還原先前已儲存的 StateBag 物件檢視狀態。Restores the previously saved view state of the StateBag object.

 virtual void System.Web.UI.IStateManager.LoadViewState(System::Object ^ state) = System::Web::UI::IStateManager::LoadViewState;
void IStateManager.LoadViewState (object state);
Sub LoadViewState (state As Object) Implements IStateManager.LoadViewState

參數

state
Object

代表要還原之 StateBag 狀態的物件。An object that represents the StateBag state to restore.

實作

備註

這個方法會從 IStateManager.SaveViewState 方法所儲存的先前頁面要求還原 StateBag 物件的檢視狀態資訊。This method restores view-state information for the StateBag object from a previous page request that was saved by the IStateManager.SaveViewState method.

這個方法主要由控制項開發人員使用。This method is primarily used by control developers. 您可以覆寫這個方法,以控制自訂伺服器控制項還原其檢視狀態的方式。You can override this method to control how a custom server control restores its view state. 如需詳細資訊,請參閱ASP.NET 狀態管理總覽For more information, see ASP.NET State Management Overview.

適用於

另請參閱