ListView.SaveControlState 方法
定义
保存 ListView 控件中必须保持的属性的状态(即使在 EnableViewState 属性设置为 false 时仍然保存)。Saves the state of the properties in the ListView control that must be persisted, even when the EnableViewState property is set to false.
protected public:
override System::Object ^ SaveControlState();
protected internal override object SaveControlState ();
override this.SaveControlState : unit -> obj
Protected Friend Overrides Function SaveControlState () As Object
返回
返回服务器控件的当前视图状态。Returns the server control's current view state. 如果没有与该控件关联的视图状态,则此方法返回 null。If there is no view state associated with the control, this method returns null.
注解
此方法用于保存控件中必须保持的属性的状态 ListView ,即使在属性设置为时也是如此 EnableViewState false 。This method is used to save the state of the properties in the ListView control that must be persisted, even when the EnableViewState property is set to false.
备注
此方法主要由控件开发人员用来扩展 ListView 控件。This method is primarily used by control developers to extend the ListView control.