SaveControlState Method

Menu.SaveControlState Method ()

 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected internal override object SaveControlState()

Return Value

Type: System.Object

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

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.

System_CAPS_noteNote

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft