This documentation is archived and is not being maintained.

MenuAdapter::LoadAdapterControlState Method

Loads any control state information that was saved by the SaveAdapterControlState method during a previous request to the page.

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

protected public:
virtual void LoadAdapterControlState(
	Object^ state
) override

Parameters

state
Type: System::Object
An Object in the form of a dictionary that contains the adapter's state information.

When an adapter needs to maintain private state information, it can override the LoadAdapterControlState and SaveAdapterControlState methods. In the case of the MenuAdapter class, where the displayed menu hierarchy is dependent on the previously selected MenuItem object, state provides a dictionary of name/value pairs containing the path of the selected item in the menu's hierarchy. The state parameter is a Pair object saved by the SaveAdapterControlState during a previous request to the page.

If the control is not registered to participate in control state, the adapter must register for control state. Adapter control state is maintained in addition to the state for the control, unlike other life-cycle methods.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: