MenuAdapter.LoadAdapterControlState(Object) 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.
Loads any control state information that was saved by the SaveAdapterControlState() method during a previous request to the page.
protected public:
override void LoadAdapterControlState(System::Object ^ state);
protected internal override void LoadAdapterControlState (object state);
override this.LoadAdapterControlState : obj -> unit
Protected Friend Overrides Sub LoadAdapterControlState (state As Object)
Parameters
Remarks
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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om