Menu.SaveControlState 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 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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour