ListControl.SaveViewState 方法

定义

保存从 ListControl 派生的控件及其包含的项的当前视图状态。Saves the current view state of the ListControl -derived control and the items it contains.

protected:
 override System::Object ^ SaveViewState();
protected override object SaveViewState ();
override this.SaveViewState : unit -> obj
Protected Overrides Function SaveViewState () As Object

返回

一个 Object,它包含已保存的 ListControl 控件的状态。An Object that contains the saved state of the ListControl control.

注解

SaveViewState方法是ListControl由控件调用的帮助器方法,用于保存控件的状态。The SaveViewState method is a helper method called by the ListControl control to save the state of the control.

备注

此方法主要由控件开发人员在扩展ListControl控件时使用。This method is used primarily by control developers when extending the ListControl control.

适用于

另请参阅