DetailsView.SaveViewState 方法

定义

保存 DetailsView 控件的当前视图状态。Saves the current view state of the DetailsView control.

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

返回

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

注解

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

适用于

另请参阅