ListView.SaveControlState 方法

定义

保存 ListView 控件中必须保持的属性的状态(即使在 EnableViewState 属性设置为 false 时仍然保存)。

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

返回

Object

返回服务器控件的当前视图状态。 如果没有与该控件关联的视图状态,则此方法返回 null

注解

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 控件。

适用于

另请参阅