DetailsView.LoadControlState(Object) 方法

定义

加载 DetailsView 控件中需要保留的属性的状态(即使在 EnableViewState 属性设置为 false 时)。Loads the state of the properties in the DetailsView control that need to be persisted, even when the EnableViewState property is set to false.

protected public:
 override void LoadControlState(System::Object ^ savedState);
protected internal override void LoadControlState (object savedState);
override this.LoadControlState : obj -> unit
Protected Friend Overrides Sub LoadControlState (savedState As Object)

参数

savedState
Object

一个 Object,表示 DetailsView 控件的状态。An Object that represents the state of the DetailsView control.

注解

方法用于加载DetailsView控件中需要EnableViewState保留的属性的状态 (即使在属性设置为false时)。 LoadControlStateThe LoadControlState method is used to load the state of the properties in the DetailsView control that need to be persisted, even when the EnableViewState property is set to false.

备注

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

适用于

另请参阅