PageAdapter.RegisterRadioButton(RadioButton) 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.
Adds a radio button control to the collection for a specified radio button group.
public:
virtual void RegisterRadioButton(System::Web::UI::WebControls::RadioButton ^ radioButton);
public virtual void RegisterRadioButton (System.Web.UI.WebControls.RadioButton radioButton);
abstract member RegisterRadioButton : System.Web.UI.WebControls.RadioButton -> unit
override this.RegisterRadioButton : System.Web.UI.WebControls.RadioButton -> unit
Public Overridable Sub RegisterRadioButton (radioButton As RadioButton)
Parameters
- radioButton
- RadioButton
The RadioButton to add to the collection.
Remarks
The PageAdapter class uses a ListDictionary object to maintain a list of radio button groups. Each element in ListDictionary is a collection of the RadioButton controls in a radio button group. The RegisterRadioButton method adds a RadioButton control to the appropriate collection, creating the collection if it does not already exist, and creating ListDictionary if there are no previously registered RadioButton controls.
Radio button control adapters use the RegisterRadioButton and GetRadioButtonsByGroup methods to reference the other RadioButton controls in a radio button group.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應