Menu.SaveControlState Method

Definition

Saves the state of the properties in the Menu control that need to be persisted.

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

Returns

An object that contains the state data for the control. If there have been no changes to the state, this method returns null.

Remarks

This method is used to save the state of the properties in the Menu control that need to be persisted, even when the EnableViewState property is set to false. The SaveControlState method is concerned with state data that is essential for a control's operation (such as an index or keyword) and is separate from the control's view-state data.

Note

This method is used primarily by control developers to extend the Menu control.

Applies to