DataControlField.LoadViewState(Object) 方法

定義

將資料來源檢視還原成之前所儲存的檢視狀態。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

代表要還原之 DataControlField 狀態的物件。An object that represents the DataControlField 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.

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

適用於

另請參閱