MenuAdapter.SaveAdapterControlState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves any changes to the adapter private control state that have occurred since the page was posted back to the server.
protected public:
override System::Object ^ SaveAdapterControlState();
protected internal override object SaveAdapterControlState ();
override this.SaveAdapterControlState : unit -> obj
Protected Friend Overrides Function SaveAdapterControlState () As Object
Returns
An Object that contains the adapter's control state information as a StateBag.
Remarks
The SaveAdapterControlState method uses the Menu control state to maintain the current navigation path of the menu. When an adapter needs to maintain private state information, it can override the LoadAdapterControlState and SaveAdapterControlState methods. An adapter might maintain private control state when there are complex features that need to maintain state across requests, separate from the associated control's state. The adapter needs to register for control state during the OnInit method call in every request.