Multiple choice technology programming languages

To which property of the Control class are constituent controls added?

  1. ViewState

  2. Collection

  3. StateBag

  4. Controls

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Controls property of the Control class is a ControlCollection object that holds all child controls added to a parent control. ViewState is for persisting control state across postbacks, StateBag is the internal storage for ViewState, and Collection is a generic .NET class not specific to control hierarchies.