Parameter.LoadViewState(Object) Parameter.LoadViewState(Object) Parameter.LoadViewState(Object) Parameter.LoadViewState(Object) Method

定義

將資料來源檢視還原成之前所儲存的檢視狀態。Restores the data source view's previously saved view state.

protected:
 virtual void LoadViewState(System::Object ^ savedState);
protected virtual void LoadViewState (object savedState);
abstract member LoadViewState : obj -> unit
override this.LoadViewState : obj -> unit
Protected Overridable Sub LoadViewState (savedState As Object)

參數

savedState
Object Object Object Object

Object,代表要還原的 Parameter 狀態。An Object that represents the Parameter 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.

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

適用於

另請參閱