WebPartManager.SaveControlState 方法
定义
保存 WebPartManager 控件的状态数据,以便在将来请求包含该控件的网页时可以还原这些数据。Saves state data for the WebPartManager control so the data can be restored on future request to the Web page that contains the control.
protected public:
override System::Object ^ SaveControlState();
protected internal override object SaveControlState ();
override this.SaveControlState : unit -> obj
Protected Friend Overrides Function SaveControlState () As Object
返回
一个 Object,它包含控件的已保存的状态数据。An Object to contain the control's saved state data.
注解
SaveControlState方法保存应在页回发之间保留的属性的状态数据,即使在 EnableViewState 属性设置为时也是如此 false 。The SaveControlState method saves state data for properties that should be persisted across page postbacks, even when the EnableViewState property is set to false.