.NET Framework Class Library RadioButtonList Class Represents a list control that encapsulates a group of radio button controls.

Inheritance Hierarchy
Namespace:
System.Web.UI.WebControls
Assembly:
System.Web (in System.Web.dll)

Syntax
<ValidationPropertyAttribute("SelectedItem")> _
Public Class RadioButtonList _
Inherits ListControl _
Implements IRepeatInfoUser, INamingContainer, IPostBackDataHandler
[ValidationPropertyAttribute("SelectedItem")]
public class RadioButtonList : ListControl,
IRepeatInfoUser, INamingContainer, IPostBackDataHandler
[ValidationPropertyAttribute(L"SelectedItem")]
public ref class RadioButtonList : public ListControl,
IRepeatInfoUser, INamingContainer, IPostBackDataHandler
[<ValidationPropertyAttribute("SelectedItem")>]
type RadioButtonList =
class
inherit ListControl
interface IRepeatInfoUser
interface INamingContainer
interface IPostBackDataHandler
end
The RadioButtonList type exposes the following members.

Constructors

Properties
|
| Name | Description |
|---|
.gif) | AccessKey | Gets or sets the access key that allows you to quickly navigate to the Web server control. (Inherited from WebControl.) | .gif) | Adapter | Gets the browser-specific adapter for the control. (Inherited from Control.) | .gif) | AppendDataBoundItems | Gets or sets a value that indicates whether list items are cleared before data binding. (Inherited from ListControl.) | .gif) | AppRelativeTemplateSourceDirectory | Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. (Inherited from Control.) | .gif) | Attributes | Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (Inherited from WebControl.) | .gif) | AutoPostBack | Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection. (Inherited from ListControl.) | .gif) | BackColor | Gets or sets the background color of the Web server control. (Inherited from WebControl.) | .gif) | BindingContainer | Infrastructure. Gets the control that contains this control's data binding. (Inherited from Control.) | .gif) | BorderColor | Gets or sets the border color of the Web control. (Inherited from WebControl.) | .gif) | BorderStyle | Gets or sets the border style of the Web server control. (Inherited from WebControl.) | .gif) | BorderWidth | Gets or sets the border width of the Web server control. (Inherited from WebControl.) | .gif) | CausesValidation | Gets or sets a value indicating whether validation is performed when a control that is derived from the ListControl class is clicked. (Inherited from ListControl.) | .gif) | CellPadding | Gets or sets the distance (in pixels) between the border and the contents of the table cell. | .gif) | CellSpacing | Gets or sets the distance (in pixels) between adjacent table cells. | .gif) | ChildControlsCreated | Gets a value that indicates whether the server control's child controls have been created. (Inherited from Control.) | .gif) | ClientID | Gets the control ID for HTML markup that is generated by ASP.NET. (Inherited from Control.) | .gif) | ClientIDMode | Gets or sets the algorithm that is used to generate the value of the ClientID property. (Inherited from Control.) | .gif) | ClientIDSeparator | Gets a character value representing the separator character used in the ClientID property. (Inherited from Control.) | .gif) | Context | Gets the HttpContext object associated with the server control for the current Web request. (Inherited from Control.) | .gif) | Controls | Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy. (Inherited from Control.) | .gif) | ControlStyle | Gets the style of the Web server control. This property is used primarily by control developers. (Inherited from WebControl.) | .gif) | ControlStyleCreated | Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers. (Inherited from WebControl.) | .gif) | CssClass | Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client. (Inherited from WebControl.) | .gif) | DataItemContainer | Gets a reference to the naming container if the naming container implements IDataItemContainer. (Inherited from Control.) | .gif) | DataKeysContainer | Gets a reference to the naming container if the naming container implements IDataKeysControl. (Inherited from Control.) | .gif) | DataMember | Gets or sets the name of the list of data that the data-bound control binds to, in cases where the data source contains more than one distinct list of data items. (Inherited from DataBoundControl.) | .gif) | DataSource | Gets or sets the object from which the data-bound control retrieves its list of data items. (Inherited from BaseDataBoundControl.) | .gif) | DataSourceID | Gets or sets the ID of the control from which the data-bound control retrieves its list of data items. (Inherited from DataBoundControl.) | .gif) | DataSourceObject | Gets an object that implements the IDataSource interface, which provides access to the object's data content. (Inherited from DataBoundControl.) | .gif) | DataTextField | Gets or sets the field of the data source that provides the text content of the list items. (Inherited from ListControl.) | .gif) | DataTextFormatString | Gets or sets the formatting string used to control how data bound to the list control is displayed. (Inherited from ListControl.) | .gif) | DataValueField | Gets or sets the field of the data source that provides the value of each list item. (Inherited from ListControl.) | .gif) | DesignMode | Gets a value indicating whether a control is being used on a design surface. (Inherited from Control.) | .gif) | Enabled | Gets or sets a value indicating whether the Web server control is enabled. (Inherited from WebControl.) | .gif) | EnableTheming | Gets or sets a value indicating whether themes apply to this control. (Inherited from WebControl.) | .gif) | EnableViewState | Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. (Inherited from Control.) | .gif) | Events | Gets a list of event handler delegates for the control. This property is read-only. (Inherited from Control.) | .gif) | Font | Gets the font properties associated with the Web server control. (Inherited from WebControl.) | .gif) | ForeColor | Gets or sets the foreground color (typically the color of the text) of the Web server control. (Inherited from WebControl.) | .gif) | HasAttributes | Gets a value indicating whether the control has attributes set. (Inherited from WebControl.) | .gif) | HasChildViewState | Gets a value indicating whether the current server control's child controls have any saved view-state settings. (Inherited from Control.) | .gif) | HasFooter | Gets a value indicating whether the RadioButtonList control contains a footer section. | .gif) | HasHeader | Gets a value indicating whether the RadioButtonList control contains a heading section. | .gif) | HasSeparators | Gets a value indicating whether the RadioButtonList control contains separators between items in the list. | .gif) | Height | Gets or sets the height of the Web server control. (Inherited from WebControl.) | .gif) | ID | Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.) | .gif) | IdSeparator | Infrastructure. Gets the character used to separate control identifiers. (Inherited from Control.) | .gif) | Initialized | Gets a value indicating whether the data-bound control has been initialized. (Inherited from BaseDataBoundControl.) | .gif) | IsBoundUsingDataSourceID | Gets a value indicating whether the DataSourceID property is set. (Inherited from BaseDataBoundControl.) | .gif) | IsChildControlStateCleared | Gets a value indicating whether controls contained within this control have control state. (Inherited from Control.) | .gif) | IsEnabled | Gets a value indicating whether the control is enabled. (Inherited from WebControl.) | .gif) | IsTrackingViewState | Gets a value that indicates whether the server control is saving changes to its view state. (Inherited from Control.) | .gif) | IsViewStateEnabled | Gets a value indicating whether view state is enabled for this control. (Inherited from Control.) | .gif) | Items | Gets the collection of items in the list control. (Inherited from ListControl.) | .gif) | LoadViewStateByID | Gets a value indicating whether the control participates in loading its view state by ID instead of index. (Inherited from Control.) | .gif) | NamingContainer | Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control..::.ID property value. (Inherited from Control.) | .gif) | Page | Gets a reference to the Page instance that contains the server control. (Inherited from Control.) | .gif) | Parent | Gets a reference to the server control's parent control in the page control hierarchy. (Inherited from Control.) | .gif) | RenderingCompatibility | Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with. (Inherited from Control.) | .gif) | RepeatColumns | Gets or sets the number of columns to display in the RadioButtonList control. | .gif) | RepeatDirection | Gets or sets the direction in which the radio buttons within the group are displayed. | .gif) | RepeatedItemCount | Gets the number of list items in the RadioButtonList control. | .gif) | RepeatLayout | Gets or sets a value that specifies whether the list will be rendered by using a table element, a ul element, an ol element, or a span element. | .gif) | RequiresDataBinding | Gets or sets a value indicating whether the DataBind method should be called. (Inherited from BaseDataBoundControl.) | .gif) | SelectArguments | Gets a DataSourceSelectArguments object that the data-bound control uses when retrieving data from a data source control. (Inherited from DataBoundControl.) | .gif) | SelectedIndex | Gets or sets the lowest ordinal index of the selected items in the list. (Inherited from ListControl.) | .gif) | SelectedItem | Gets the selected item with the lowest index in the list control. (Inherited from ListControl.) | .gif) | SelectedValue | Gets the value of the selected item in the list control, or selects the item in the list control that contains the specified value. (Inherited from ListControl.) | .gif) | Site | Gets information about the container that hosts the current control when rendered on a design surface. (Inherited from Control.) | .gif) | SkinID | Gets or sets the skin to apply to the control. (Inherited from WebControl.) | .gif) | Style | Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control. (Inherited from WebControl.) | .gif) | SupportsDisabledAttribute | Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false. (Inherited from BaseDataBoundControl.) | .gif) | TabIndex | Gets or sets the tab index of the Web server control. (Inherited from WebControl.) | .gif) | TagKey | Gets the HtmlTextWriterTag value for the ListControl control. (Inherited from ListControl.) | .gif) | TagName | Gets the name of the control tag. This property is used primarily by control developers. (Inherited from WebControl.) | .gif) | TemplateControl | Gets or sets a reference to the template that contains this control. (Inherited from Control.) | .gif) | TemplateSourceDirectory | Gets the virtual directory of the Page or UserControl that contains the current server control. (Inherited from Control.) | .gif) | Text | Gets or sets the SelectedValue property of the ListControl control. (Inherited from ListControl.) | .gif) | TextAlign | Gets or sets the text alignment for the radio buttons within the group. | .gif) | ToolTip | Gets or sets the text displayed when the mouse pointer hovers over the Web server control. (Inherited from WebControl.) | .gif) | UniqueID | Gets the unique, hierarchically qualified identifier for the server control. (Inherited from Control.) | .gif) | ValidationGroup | Gets or sets the group of controls for which the control that is derived from the ListControl class causes validation when it posts back to the server. (Inherited from ListControl.) | .gif) | ViewState | Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. (Inherited from Control.) | .gif) | ViewStateIgnoresCase | Gets a value that indicates whether the StateBag object is case-insensitive. (Inherited from Control.) | .gif) | ViewStateMode | Gets or sets the view-state mode of this control. (Inherited from Control.) | .gif) | Visible | Gets or sets a value that indicates whether a server control is rendered as UI on the page. (Inherited from Control.) | .gif) | Width | Gets or sets the width of the Web server control. (Inherited from WebControl.) | Top

Methods
|
| Name | Description |
|---|
.gif) | AddAttributesToRender | Applies HTML attributes and styles to render to the specified HtmlTextWriter object. (Inherited from ListControl.) | .gif) | AddedControl | Called after a child control is added to the Controls collection of the Control object. (Inherited from Control.) | .gif) | AddParsedSubObject | Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object. (Inherited from Control.) | .gif) | ApplyStyle | Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers. (Inherited from WebControl.) | .gif) | ApplyStyleSheetSkin | Applies the style properties defined in the page style sheet to the control. (Inherited from Control.) | .gif) | BuildProfileTree | Infrastructure. Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page. (Inherited from Control.) | .gif) | ClearCachedClientID | Infrastructure. Sets the cached ClientID value to nullNothingnullptra null reference (Nothing in Visual Basic). (Inherited from Control.) | .gif) | ClearChildControlState | Deletes the control-state information for the server control's child controls. (Inherited from Control.) | .gif) | ClearChildState | Deletes the view-state and control-state information for all the server control's child controls. (Inherited from Control.) | .gif) | ClearChildViewState | Deletes the view-state information for all the server control's child controls. (Inherited from Control.) | .gif) | ClearEffectiveClientIDMode | Infrastructure. Sets the ClientIDMode property of the current control instance and of any child controls to Inherit. (Inherited from Control.) | .gif) | ClearSelection | Clears out the list selection and sets the Selected property of all items to false. (Inherited from ListControl.) | .gif) | ConfirmInitState | Sets the initialized state of the data-bound control. (Inherited from BaseDataBoundControl.) | .gif) | CopyBaseAttributes | Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers. (Inherited from WebControl.) | .gif) | CreateChildControls | Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. (Inherited from Control.) | .gif) | CreateControlCollection | Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control. (Inherited from Control.) | .gif) | CreateControlStyle | Creates a style object that is used internally by the RadioButtonList control to implement all style-related properties. (Overrides WebControl..::.CreateControlStyle()()().) | .gif) | CreateDataSourceSelectArguments | Creates a default DataSourceSelectArguments object used by the data-bound control if no arguments are specified. (Inherited from DataBoundControl.) | .gif) | DataBind()()() | Binds a data source to the invoked server control and all its child controls. (Inherited from BaseDataBoundControl.) | .gif) | DataBind(Boolean) | Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event. (Inherited from Control.) | .gif) | DataBindChildren | Binds a data source to the server control's child controls. (Inherited from Control.) | .gif) | Dispose | Enables a server control to perform final clean up before it is released from memory. (Inherited from Control.) | .gif) | EnsureChildControls | Determines whether the server control contains child controls. If it does not, it creates child controls. (Inherited from Control.) | .gif) | EnsureDataBound | Calls the DataBind method if the DataSourceID property is set and the data-bound control is marked to require binding. (Inherited from BaseDataBoundControl.) | .gif) | EnsureID | Creates an identifier for controls that do not have an identifier assigned. (Inherited from Control.) | .gif) | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | .gif) | FindControl(String) | Searches the current naming container for a server control with the specified id parameter. (Inherited from Control.) | .gif) | FindControl(String, Int32) | Infrastructure. Searches the current naming container for a server control with the specified ID and path offset. The FindControl method always returns the RadioButtonList object. (Overrides Control..::.FindControl(String, Int32).) | .gif) | Focus | Sets input focus to a control. (Inherited from Control.) | .gif) | GetData | Retrieves a DataSourceView object that the data-bound control uses to perform data operations. (Inherited from DataBoundControl.) | .gif) | GetDataSource | Retrieves the IDataSource interface that the data-bound control is associated with, if any. (Inherited from DataBoundControl.) | .gif) | GetDesignModeState | Infrastructure. Gets design-time data for a control. (Inherited from Control.) | .gif) | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | .gif) | GetItemStyle | Retrieves the style of the specified item type at the specified index in the list control. | .gif) | GetRouteUrl(Object) | Gets the URL that corresponds to a set of route parameters. (Inherited from Control.) | .gif) | GetRouteUrl(RouteValueDictionary) | Gets the URL that corresponds to a set of route parameters. (Inherited from Control.) | .gif) | GetRouteUrl(String, Object) | Gets the URL that corresponds to a set of route parameters and a route name. (Inherited from Control.) | .gif) | GetRouteUrl(String, RouteValueDictionary) | Gets the URL that corresponds to a set of route parameters and a route name. (Inherited from Control.) | .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | .gif) | GetUniqueIDRelativeTo | Returns the prefixed portion of the UniqueID property of the specified control. (Inherited from Control.) | .gif) | HasControls | Determines if the server control contains any child controls. (Inherited from Control.) | .gif) | HasEvents | Returns a value indicating whether events are registered for the control or any child controls. (Inherited from Control.) | .gif) | IsLiteralContent | Infrastructure. Determines if the server control holds only literal content. (Inherited from Control.) | .gif) | LoadControlState | Restores control-state information from a previous page request that was saved by the SaveControlState method. (Inherited from Control.) | .gif) | LoadPostData | Processes the posted data for the RadioButtonList control. | .gif) | LoadViewState | Loads the previously saved view state of the DetailsView control. (Inherited from ListControl.) | .gif) | MapPathSecure | Retrieves the physical path that a virtual path, either absolute or relative, maps to. (Inherited from Control.) | .gif) | MarkAsDataBound | Sets the state of the control in view state as successfully bound to data. (Inherited from DataBoundControl.) | .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | .gif) | MergeStyle | Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is used primarily by control developers. (Inherited from WebControl.) | .gif) | OnBubbleEvent | Determines whether the event for the server control is passed up the page's UI server control hierarchy. (Inherited from Control.) | .gif) | OnDataBinding | Infrastructure. Raises the DataBinding event. (Inherited from ListControl.) | .gif) | OnDataBound | Raises the DataBound event. (Inherited from BaseDataBoundControl.) | .gif) | OnDataPropertyChanged | Rebinds the data-bound control to its data after one of the base data source identification properties changes. (Inherited from DataBoundControl.) | .gif) | OnDataSourceViewChanged | Raises the DataSourceViewChanged event. (Inherited from DataBoundControl.) | .gif) | OnInit | Handles the Init event. (Inherited from BaseDataBoundControl.) | .gif) | OnLoad | Handles the Control..::.Load event. (Inherited from DataBoundControl.) | .gif) | OnPagePreLoad | Sets the initialized state of the data-bound control before the control is loaded. (Inherited from DataBoundControl.) | .gif) | OnPreRender | Raises the PreRender event. (Inherited from ListControl.) | .gif) | OnSelectedIndexChanged | Raises the SelectedIndexChanged event. This allows you to provide a custom handler for the event. (Inherited from ListControl.) | .gif) | OnTextChanged | Raises the TextChanged event. (Inherited from ListControl.) | .gif) | OnUnload | Raises the Unload event. (Inherited from Control.) | .gif) | OpenFile | Gets a Stream used to read a file. (Inherited from Control.) | .gif) | PerformDataBinding | Infrastructure. Binds the specified data source to the control that is derived from the ListControl class. (Inherited from ListControl.) | .gif) | PerformSelect | Retrieves data from the associated data source. (Inherited from ListControl.) | .gif) | RaiseBubbleEvent | Assigns any sources of the event and its information to the control's parent. (Inherited from Control.) | .gif) | RaisePostDataChangedEvent | Notifies the ASP.NET application that the state of the RadioButtonList control has changed. | .gif) | RemovedControl | Called after a child control is removed from the Controls collection of the Control object. (Inherited from Control.) | .gif) | Render | Displays the RadioButtonList control on the client. (Overrides WebControl..::.Render(HtmlTextWriter).) | .gif) | RenderBeginTag | Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers. (Inherited from WebControl.) | .gif) | RenderChildren | Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client. (Inherited from Control.) | .gif) | RenderContents | Renders the items in the ListControl control. (Inherited from ListControl.) | .gif) | RenderControl(HtmlTextWriter) | Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled. (Inherited from Control.) | .gif) | RenderControl(HtmlTextWriter, ControlAdapter) | Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object. (Inherited from Control.) | .gif) | RenderEndTag | Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers. (Inherited from WebControl.) | .gif) | RenderItem | Renders a list item in the RadioButtonList control. | .gif) | ResolveAdapter | Gets the control adapter responsible for rendering the specified control. (Inherited from Control.) | .gif) | ResolveClientUrl | Gets a URL that can be used by the browser. (Inherited from Control.) | .gif) | ResolveUrl | Converts a URL into one that is usable on the requesting client. (Inherited from Control.) | .gif) | SaveControlState | Saves any server control state changes that have occurred since the time the page was posted back to the server. (Inherited from Control.) | .gif) | SaveViewState | Saves the current view state of the ListControl -derived control and the items it contains. (Inherited from ListControl.) | .gif) | SetDesignModeState | Sets design-time data for a control. (Inherited from Control.) | .gif) | SetPostDataSelection | Infrastructure. Sets the Selected property of a ListItem control after a page is posted. (Inherited from ListControl.) | .gif) | SetRenderMethodDelegate | Infrastructure. Assigns an event handler delegate to render the server control and its content into its parent control. (Inherited from Control.) | .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | .gif) | TrackViewState | Marks the starting point to begin tracking and saving view-state changes to a ListControl -derived control. (Inherited from ListControl.) | .gif) | ValidateDataSource | Verifies that the object a data-bound control binds to is one it can work with. (Inherited from DataBoundControl.) | .gif) | VerifyMultiSelect | Infrastructure. Determines whether the list control supports multiselection mode. (Inherited from ListControl.) | Top

Extension Methods

Explicit Interface Implementations
|
| Name | Description |
|---|
.gif) .gif) | IAttributeAccessor..::.GetAttribute | Infrastructure. Gets an attribute of the Web control with the specified name. (Inherited from WebControl.) | .gif) .gif) | IAttributeAccessor..::.SetAttribute | Sets an attribute of the Web control to the specified name and value. (Inherited from WebControl.) | .gif) .gif) | IControlBuilderAccessor..::.ControlBuilder | For a description of this member, see IControlBuilderAccessor..::.ControlBuilder. (Inherited from Control.) | .gif) .gif) | IControlDesignerAccessor..::.GetDesignModeState | For a description of this member, see IControlDesignerAccessor..::.GetDesignModeState. (Inherited from Control.) | .gif) .gif) | IControlDesignerAccessor..::.SetDesignModeState | For a description of this member, see IControlDesignerAccessor..::.SetDesignModeState. (Inherited from Control.) | .gif) .gif) | IControlDesignerAccessor..::.SetOwnerControl | Infrastructure. For a description of this member, see IControlDesignerAccessor..::.SetOwnerControl. (Inherited from Control.) | .gif) .gif) | IControlDesignerAccessor..::.UserData | For a description of this member, see IControlDesignerAccessor..::.UserData. (Inherited from Control.) | .gif) .gif) | IDataBindingsAccessor..::.DataBindings | For a description of this member, see IDataBindingsAccessor..::.DataBindings. (Inherited from Control.) | .gif) .gif) | IDataBindingsAccessor..::.HasDataBindings | For a description of this member, see IDataBindingsAccessor..::.HasDataBindings. (Inherited from Control.) | .gif) .gif) | IExpressionsAccessor..::.Expressions | For a description of this member, see IExpressionsAccessor..::.Expressions. (Inherited from Control.) | .gif) .gif) | IExpressionsAccessor..::.HasExpressions | For a description of this member, see IExpressionsAccessor..::.HasExpressions. (Inherited from Control.) | .gif) .gif) | IParserAccessor..::.AddParsedSubObject | For a description of this member, see IParserAccessor..::.AddParsedSubObject. (Inherited from Control.) | .gif) .gif) | IPostBackDataHandler..::.LoadPostData | Infrastructure. Processes posted data for the RadioButtonList control. | .gif) .gif) | IPostBackDataHandler..::.RaisePostDataChangedEvent | Infrastructure. Raised when posted data for a control has changed. | .gif) .gif) | IRepeatInfoUser..::.GetItemStyle | Infrastructure. Retrieves the style of the specified item type at the specified index in the list control. | .gif) .gif) | IRepeatInfoUser..::.HasFooter | Gets a value that indicates whether the list control contains a footer section. | .gif) .gif) | IRepeatInfoUser..::.HasHeader | Gets a value that indicates whether the list control contains a heading section. | .gif) .gif) | IRepeatInfoUser..::.HasSeparators | Gets a value that indicates whether the list control contains a separator between items in the list. | .gif) .gif) | IRepeatInfoUser..::.RenderItem | Infrastructure. Renders an item in the list with the specified information. | .gif) .gif) | IRepeatInfoUser..::.RepeatedItemCount | Gets the number of items in the list control. | Top

Remarks
In this topic: IntroductionThe RadioButtonList control provides page developers with a single-selection radio button group that can be dynamically generated through data binding. It contains an Items collection with members that correspond to individual items on the list. To determine which item is selected, test the SelectedItem property of the list. Specifying List LayoutYou can specify how the list is rendered by setting the RepeatLayout and RepeatDirection properties. For information about layout options, see the RepeatLayout enumeration. By default, RepeatDirection is set to RepeatDirection.Vertical. Setting this property to RepeatDirection.Horizontal causes the control to render the list horizontally. Some RepeatLayout settings do not allow horizontal layout. For more information, see the RepeatLayout enumeration. AccessibilityDeclarative Syntax
<asp:RadioButtonList
AccessKey="string"
AppendDataBoundItems="True|False"
AutoPostBack="True|False"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CausesValidation="True|False"
CellPadding="integer"
CellSpacing="integer"
CssClass="string"
DataMember="string"
DataSource="string"
DataSourceID="string"
DataTextField="string"
DataTextFormatString="string"
DataValueField="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
ID="string"
OnDataBinding="DataBinding event handler"
OnDataBound="DataBound event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnSelectedIndexChanged="SelectedIndexChanged event handler"
OnTextChanged="TextChanged event handler"
OnUnload="Unload event handler"
RepeatColumns="integer"
RepeatDirection="Horizontal|Vertical"
RepeatLayout="Table|Flow|OrderedList|UnorderedList"
runat="server"
SelectedIndex="integer"
SelectedValue="string"
SkinID="string"
Style="string"
TabIndex="integer"
TextAlign="Left|Right"
ToolTip="string"
ValidationGroup="string"
Visible="True|False"
Width="size"
>
<asp:ListItem
Enabled="True|False"
Selected="True|False"
Text="string"
Value="string"
/>
</asp:RadioButtonList>

Examples
The following code example demonstrates how to programmatically modify the display of a RadioButtonList control. Note |
|---|
The following code example uses the single-file code model and might not work correctly if copied directly into a code-behind file. This code example must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see ASP.NET Web Page Code Model. |
<%@ Page Language="VB" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<title>RadioButtonList Example</title>
<script language="VB" runat="server">
Sub Button1_Click(Source As Object, e As EventArgs)
If RadioButtonList1.SelectedIndex > - 1 Then
Label1.Text = "You selected: " & RadioButtonList1.SelectedItem.Text
End If
End Sub
Sub chkLayout_CheckedChanged(sender As Object, e As EventArgs)
If chkLayout.Checked = True Then
RadioButtonList1.RepeatLayout = RepeatLayout.Table
Else
RadioButtonList1.RepeatLayout = RepeatLayout.Flow
End If
End Sub
Sub chkDirection_CheckedChanged(sender As Object, e As EventArgs)
If chkDirection.Checked = True Then
RadioButtonList1.RepeatDirection = RepeatDirection.Horizontal
Else
RadioButtonList1.RepeatDirection = RepeatDirection.Vertical
End If
End Sub
</script>
</head>
<body>
<h3>RadioButtonList Example</h3>
<form id="form1" runat="server">
<asp:RadioButtonList id="RadioButtonList1" runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:CheckBox id="chkLayout" OnCheckedChanged="chkLayout_CheckedChanged" Text="Display Table Layout" Checked="true" AutoPostBack="true" runat="server" />
<br />
<asp:CheckBox id="chkDirection" OnCheckedChanged="chkDirection_CheckedChanged" Text="Display Horizontally" AutoPostBack="true" runat="server" />
<br />
<asp:Button id="Button1" Text="Submit" onclick="Button1_Click" runat="server"/>
<br />
<asp:Label id="Label1" font-names="Verdana" font-size="8pt" runat="server"/>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<title>RadioButtonList Example</title>
<script language="C#" runat="server">
void Button1_Click(object Source, EventArgs e)
{
if (RadioButtonList1.SelectedIndex > -1)
{
Label1.Text = "You selected: " + RadioButtonList1.SelectedItem.Text;
}
}
void chkLayout_CheckedChanged(Object sender, EventArgs e)
{
if (chkLayout.Checked == true)
{
RadioButtonList1.RepeatLayout = RepeatLayout.Table;
}
else
{
RadioButtonList1.RepeatLayout = RepeatLayout.Flow;
}
}
void chkDirection_CheckedChanged(Object sender, EventArgs e)
{
if (chkDirection.Checked == true)
{
RadioButtonList1.RepeatDirection = RepeatDirection.Horizontal;
}
else
{
RadioButtonList1.RepeatDirection = RepeatDirection.Vertical;
}
}
</script>
</head>
<body>
<h3>RadioButtonList Example</h3>
<form id="form1" runat="server">
<asp:RadioButtonList id="RadioButtonList1" runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:CheckBox id="chkLayout" OnCheckedChanged="chkLayout_CheckedChanged" Text="Display Table Layout" Checked="true" AutoPostBack="true" runat="server" />
<br />
<asp:CheckBox id="chkDirection" OnCheckedChanged="chkDirection_CheckedChanged" Text="Display Horizontally" AutoPostBack="true" runat="server" />
<br />
<asp:Button id="Button1" Text="Submit" onclick="Button1_Click" runat="server"/>
<br />
<asp:Label id="Label1" font-names="Verdana" font-size="8pt" runat="server"/>
</form>
</body>
</html>

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also
|
Bibliothèque de classes .NET Framework RadioButtonList, classe Représente un contrôle de liste qui encapsule un groupe de contrôles de cases d'option.

Hiérarchie d'héritage
Espace de noms :
System.Web.UI.WebControls
Assembly :
System.Web (dans System.Web.dll)

Syntaxe
<ValidationPropertyAttribute("SelectedItem")> _
Public Class RadioButtonList _
Inherits ListControl _
Implements IRepeatInfoUser, INamingContainer, IPostBackDataHandler
[ValidationPropertyAttribute("SelectedItem")]
public class RadioButtonList : ListControl,
IRepeatInfoUser, INamingContainer, IPostBackDataHandler
[ValidationPropertyAttribute(L"SelectedItem")]
public ref class RadioButtonList : public ListControl,
IRepeatInfoUser, INamingContainer, IPostBackDataHandler
[<ValidationPropertyAttribute("SelectedItem")>]
type RadioButtonList =
class
inherit ListControl
interface IRepeatInfoUser
interface INamingContainer
interface IPostBackDataHandler
end
Le type RadioButtonList expose les membres suivants.

Constructeurs

Propriétés
|
| Nom | Description |
|---|
.gif) | AccessKey | Obtient ou définit la touche d'accès rapide qui vous permet de naviguer rapidement vers le contrôle serveur Web. (Hérité de WebControl.) | .gif) | Adapter | Obtient l'adaptateur spécifique au navigateur pour le contrôle. (Hérité de Control.) | .gif) | AppendDataBoundItems | Obtient ou définit une valeur qui indique si les éléments de liste sont effacés avant la liaison des données. (Hérité de ListControl.) | .gif) | AppRelativeTemplateSourceDirectory | Obtient ou définit le répertoire virtuel relatif à l'application de l'objet Page ou UserControl qui contient ce contrôle. (Hérité de Control.) | .gif) | Attributes | Obtient la collection d'attributs arbitraires (pour le rendu uniquement) qui ne correspondent pas à des propriétés du contrôle. (Hérité de WebControl.) | .gif) | AutoPostBack | Obtient ou définit une valeur indiquant si une publication sur le serveur se produit automatiquement lorsque l'utilisateur modifie la sélection de la liste. (Hérité de ListControl.) | .gif) | BackColor | Obtient ou définit la couleur d'arrière-plan du contrôle serveur Web. (Hérité de WebControl.) | .gif) | BindingContainer | Infrastructure. Obtient le contrôle qui contient la liaison de données de ce contrôle. (Hérité de Control.) | .gif) | BorderColor | Obtient ou définit la couleur de bordure du contrôle Web. (Hérité de WebControl.) | .gif) | BorderStyle | Obtient ou définit le style de bordure du contrôle serveur Web. (Hérité de WebControl.) | .gif) | BorderWidth | Obtient ou définit la largeur de bordure du contrôle serveur Web. (Hérité de WebControl.) | .gif) | CausesValidation | Obtient ou définit une valeur indiquant si une validation est effectuée suite à un clic sur le contrôle dérivé de la classe ListControl. (Hérité de ListControl.) | .gif) | CellPadding | Obtient ou définit la distance (en pixels) entre la bordure et le contenu de la cellule du tableau. | .gif) | CellSpacing | Obtient ou définit la distance (en pixels) entre les cellules adjacentes du tableau. | .gif) | ChildControlsCreated | Obtient une valeur qui indique si des contrôles enfants du contrôle serveur ont été créés. (Hérité de Control.) | .gif) | ClientID | Obtient l'ID de contrôle pour le balisage HTML généré par ASP.NET. (Hérité de Control.) | .gif) | ClientIDMode | Obtient ou définit l'algorithme utilisé pour générer la valeur de la propriété ClientID. (Hérité de Control.) | .gif) | ClientIDSeparator | Obtient une valeur de caractère représentant le caractère de séparation utilisé dans la propriété ClientID. (Hérité de Control.) | .gif) | Context | Obtient l'objet HttpContext associé au contrôle serveur pour la demande Web en cours. (Hérité de Control.) | .gif) | Controls | Obtient un objet ControlCollection qui représente les contrôles enfants d'un contrôle serveur spécifié dans la hiérarchie de l'interface utilisateur. (Hérité de Control.) | .gif) | ControlStyle | Obtient le style d'un contrôle serveur Web. Cette propriété est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | ControlStyleCreated | Obtient une valeur indiquant si un objet Style a été créé pour la propriété ControlStyle. Cette propriété est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | CssClass | Obtient ou définit la classe de feuille de style en cascade (CSS, Cascading Style Sheet) rendue par le contrôle serveur Web sur le client. (Hérité de WebControl.) | .gif) | DataItemContainer | Obtient une référence au conteneur d'attribution de noms si celui-ci implémente IDataItemContainer. (Hérité de Control.) | .gif) | DataKeysContainer | Obtient une référence au conteneur d'attribution de noms si celui-ci implémente IDataKeysControl. (Hérité de Control.) | .gif) | DataMember | Obtient ou définit le nom de la liste des données auxquelles le contrôle lié aux données se lie, dans les cas où la source de données contient plusieurs listes distinctes d'éléments de données. (Hérité de DataBoundControl.) | .gif) | DataSource | Obtient ou définit l'objet duquel le contrôle lié aux données récupère sa liste d'éléments de données. (Hérité de BaseDataBoundControl.) | .gif) | DataSourceID | Obtient ou définit l'ID du contrôle duquel le contrôle lié aux données récupère sa liste d'éléments de données. (Hérité de DataBoundControl.) | .gif) | DataSourceObject | Obtient un objet qui implémente l'interface IDataSource, qui fournit l'accès au contenu des données de l'objet. (Hérité de DataBoundControl.) | .gif) | DataTextField | Obtient ou définit le champ de la source de données fournissant le texte des éléments de la liste. (Hérité de ListControl.) | .gif) | DataTextFormatString | Obtient ou définit la chaîne de mise en forme permettant de contrôler l'affichage des données liées au contrôle de liste. (Hérité de ListControl.) | .gif) | DataValueField | Obtient ou définit le champ de la source de données fournissant la valeur de chaque élément de la liste. (Hérité de ListControl.) | .gif) | DesignMode | Obtient une valeur indiquant si un contrôle est utilisé sur une aire de conception. (Hérité de Control.) | .gif) | Enabled | Obtient ou définit une valeur indiquant si le contrôle serveur Web est activé. (Hérité de WebControl.) | .gif) | EnableTheming | Obtient ou définit une valeur indiquant si les thèmes s'appliquent à ce contrôle. (Hérité de WebControl.) | .gif) | EnableViewState | Obtient ou définit une valeur indiquant si le contrôle serveur rend persistant son état d'affichage, ainsi que celui de tous les contrôles enfants qu'il contient, sur le client à l'origine de la demande. (Hérité de Control.) | .gif) | Events | Obtient la liste des délégués de gestionnaires d'événements pour le contrôle. Cette propriété est en lecture seule. (Hérité de Control.) | .gif) | Font | Obtient les propriétés de police associées au contrôle serveur Web. (Hérité de WebControl.) | .gif) | ForeColor | Obtient ou définit la couleur de premier plan (généralement la couleur du texte) du contrôle serveur Web. (Hérité de WebControl.) | .gif) | HasAttributes | Obtient une valeur indiquant si le contrôle a des attributs définis. (Hérité de WebControl.) | .gif) | HasChildViewState | Obtient une valeur indiquant si les contrôles enfants du contrôle serveur en cours possèdent des paramètres d'état d'affichage enregistrés. (Hérité de Control.) | .gif) | HasFooter | Obtient une valeur indiquant si le contrôle RadioButtonList contient une section de pied de page. | .gif) | HasHeader | Obtient une valeur indiquant si le contrôle RadioButtonList contient une section d'en-tête. | .gif) | HasSeparators | Obtient une valeur indiquant si le contrôle RadioButtonList contient des séparateurs entre les éléments de la liste. | .gif) | Height | Obtient ou définit la hauteur du contrôle serveur Web. (Hérité de WebControl.) | .gif) | ID | Obtient ou définit l'ID programmatique assigné au contrôle serveur. (Hérité de Control.) | .gif) | IdSeparator | Infrastructure. Obtient le caractère utilisé pour séparer des identificateurs de contrôle. (Hérité de Control.) | .gif) | Initialized | Obtient une valeur indiquant si le contrôle lié aux données a été initialisé. (Hérité de BaseDataBoundControl.) | .gif) | IsBoundUsingDataSourceID | Obtient une valeur indiquant si la propriété DataSourceID est définie. (Hérité de BaseDataBoundControl.) | .gif) | IsChildControlStateCleared | Obtient une valeur indiquant si les contrôles contenus dans ce contrôle utilisent l'état du contrôle. (Hérité de Control.) | .gif) | IsEnabled | Obtient une valeur indiquant si le contrôle est activé. (Hérité de WebControl.) | .gif) | IsTrackingViewState | Obtient une valeur qui indique si le contrôle serveur enregistre les modifications apportées à son état d'affichage. (Hérité de Control.) | .gif) | IsViewStateEnabled | Obtient une valeur indiquant si l'état d'affichage est activé pour ce contrôle. (Hérité de Control.) | .gif) | Items | Obtient la collection des éléments figurant dans le contrôle de liste. (Hérité de ListControl.) | .gif) | LoadViewStateByID | Obtient une valeur indiquant si le contrôle participe au chargement de son état d'affichage par ID et non par index. (Hérité de Control.) | .gif) | NamingContainer | Obtient une référence au conteneur d'attribution de noms du contrôle serveur, qui crée un espace de noms unique pour différencier les contrôles serveur dont la propriété Control..::.ID possède la même valeur. (Hérité de Control.) | .gif) | Page | Obtient une référence à l'instance de Page qui contient le contrôle serveur. (Hérité de Control.) | .gif) | Parent | Obtient une référence au contrôle parent du contrôle serveur dans la hiérarchie des contrôles de la page. (Hérité de Control.) | .gif) | RenderingCompatibility | Obtient une valeur qui spécifie la version ASP.NET avec laquelle le HTML restitué sera compatible. (Hérité de Control.) | .gif) | RepeatColumns | Obtient ou définit le nombre de colonnes à afficher dans le contrôle RadioButtonList. | .gif) | RepeatDirection | Obtient ou définit le sens de l'affichage des cases d'option au sein du groupe. | .gif) | RepeatedItemCount | Obtient le nombre d'éléments de liste figurant dans le contrôle RadioButtonList. | .gif) | RepeatLayout | Obtient ou définit une valeur qui spécifie si la liste sera restituée à l'aide d'un élément table, d'un élément ul, d'un élément ol ou d'un élément span. | .gif) | RequiresDataBinding | Obtient ou définit une valeur indiquant si la méthode DataBind doit être appelée. (Hérité de BaseDataBoundControl.) | .gif) | SelectArguments | Obtient un objet DataSourceSelectArguments que le contrôle lié aux données utilise lors de la récupération de données à partir d'un contrôle de source de données. (Hérité de DataBoundControl.) | .gif) | SelectedIndex | Obtient ou définit l'index ordinal le moins élevé des éléments sélectionnés dans la liste. (Hérité de ListControl.) | .gif) | SelectedItem | Obtient l'élément sélectionné avec l'index le moins élevé dans le contrôle de liste. (Hérité de ListControl.) | .gif) | SelectedValue | Obtient la valeur de l'élément sélectionné dans le contrôle de liste ou sélectionne, dans ce contrôle, l'élément qui contient la valeur spécifiée. (Hérité de ListControl.) | .gif) | Site | Obtient des informations sur le conteneur qui héberge le contrôle en cours lorsqu'il est rendu sur une aire de conception. (Hérité de Control.) | .gif) | SkinID | Obtient ou définit l'apparence à appliquer au contrôle. (Hérité de WebControl.) | .gif) | Style | Obtient une collection d'attributs de texte qui sont rendus en tant qu'attribut de style sur la balise extérieure d'un contrôle serveur Web. (Hérité de WebControl.) | .gif) | SupportsDisabledAttribute | Obtient une valeur qui indique si le contrôle doit affecter à l'attribut disabled de l'élément HTML rendu la valeur "disabled" lorsque la propriété IsEnabled du contrôle a la valeur false. (Hérité de BaseDataBoundControl.) | .gif) | TabIndex | Obtient ou définit l'index de tabulation du contrôle serveur Web. (Hérité de WebControl.) | .gif) | TagKey | Obtient la valeur HtmlTextWriterTag du contrôle ListControl. (Hérité de ListControl.) | .gif) | TagName | Obtient le nom de la balise du contrôle. Cette propriété est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | TemplateControl | Obtient ou définit une référence au modèle qui contient ce contrôle. (Hérité de Control.) | .gif) | TemplateSourceDirectory | Obtient le répertoire virtuel du Page ou du UserControl qui contient le contrôle serveur en cours. (Hérité de Control.) | .gif) | Text | Obtient ou définit la propriété SelectedValue du contrôle ListControl. (Hérité de ListControl.) | .gif) | TextAlign | Obtient ou définit l'alignement du texte des cases d'option à l'intérieur du groupe. | .gif) | ToolTip | Obtient ou définit le texte affiché quand le pointeur de la souris est positionné sur le contrôle serveur Web. (Hérité de WebControl.) | .gif) | UniqueID | Obtient l'identificateur unique qualifié sur le plan hiérarchique du contrôle serveur. (Hérité de Control.) | .gif) | ValidationGroup | Obtient ou définit le groupe de contrôles pour lequel le contrôle dérivé de la classe ListControl provoque la validation lors de la publication sur le serveur. (Hérité de ListControl.) | .gif) | ViewState | Obtient un dictionnaire d'informations d'état qui vous permet d'enregistrer et de restaurer l'état d'affichage d'un contrôle serveur entre plusieurs demandes de la même page. (Hérité de Control.) | .gif) | ViewStateIgnoresCase | Obtient une valeur qui indique si l'objet StateBag respecte la casse. (Hérité de Control.) | .gif) | ViewStateMode | Obtient ou définit le mode d'état d'affichage de ce contrôle. (Hérité de Control.) | .gif) | Visible | Obtient ou définit une valeur qui indique si un contrôle serveur est rendu sous la forme d'une interface utilisateur sur la page. (Hérité de Control.) | .gif) | Width | Obtient ou définit la largeur du contrôle serveur Web. (Hérité de WebControl.) | Début

Méthodes
|
| Nom | Description |
|---|
.gif) | AddAttributesToRender | Applique des attributs et des styles HTML à rendre vers l'objet HtmlTextWriter spécifié. (Hérité de ListControl.) | .gif) | AddedControl | Appelée après l'ajout d'un contrôle enfant à la collection Controls de l'objet Control. (Hérité de Control.) | .gif) | AddParsedSubObject | Avertit le contrôle serveur qu'un élément XML ou HTML a été analysé et l'ajoute à l'objet ControlCollection du contrôle serveur. (Hérité de Control.) | .gif) | ApplyStyle | Copie tous les éléments non vides du style spécifié vers le contrôle Web, en remplaçant les éléments de style existants du contrôle. Cette méthode est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | ApplyStyleSheetSkin | Applique les propriétés de style définies dans la feuille de style de la page au contrôle. (Hérité de Control.) | .gif) | BuildProfileTree | Infrastructure. Collecte des informations sur le contrôle serveur et les livre à la propriété Trace à afficher lorsque le traçage est activé pour la page. (Hérité de Control.) | .gif) | ClearCachedClientID | Infrastructure. Affecte à la valeur ClientID mise en cache la valeur nullNothingnullptrune référence null (Nothing en Visual Basic). (Hérité de Control.) | .gif) | ClearChildControlState | Supprime les informations sur l'état du contrôle des contrôles enfants du contrôle serveur. (Hérité de Control.) | .gif) | ClearChildState | Supprime les informations sur l'état d'affichage et sur l'état du contrôle de tous les contrôles enfants du contrôle serveur. (Hérité de Control.) | .gif) | ClearChildViewState | Supprime les informations d'état d'affichage de tous les contrôles enfants du contrôle serveur. (Hérité de Control.) | .gif) | ClearEffectiveClientIDMode | Infrastructure. Affecte la valeur Inherit à la propriété ClientIDMode de l'instance de contrôle actuelle et de tous contrôles enfants. (Hérité de Control.) | .gif) | ClearSelection | Annule la sélection de liste et affecte la valeur False à la propriété Selected de tous les éléments. (Hérité de ListControl.) | .gif) | ConfirmInitState | Définit l'état initialisé du contrôle lié aux données. (Hérité de BaseDataBoundControl.) | .gif) | CopyBaseAttributes | Copie les propriétés non encapsulées par l'objet Style du contrôle serveur Web spécifié vers le contrôle serveur Web à partir duquel cette méthode est appelée. Cette méthode est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | CreateChildControls | Appelé par l'infrastructure de page ASP.NET pour avertir les contrôles serveur qui utilisent une implémentation basée sur la composition qu'ils doivent créer tous les contrôles enfants qu'ils contiennent en préparation de la publication ou du rendu. (Hérité de Control.) | .gif) | CreateControlCollection | Crée un nouvel objet ControlCollection pour contenir les contrôles enfants (littéraux et serveur) du contrôle serveur. (Hérité de Control.) | .gif) | CreateControlStyle | Crée un objet de style qui est utilisé de manière interne par le contrôle RadioButtonList pour implémenter toutes les propriétés associées au style. (Substitue WebControl..::.CreateControlStyle()()().) | .gif) | CreateDataSourceSelectArguments | Crée un objet DataSourceSelectArguments par défaut utilisé par le contrôle lié aux données si aucun argument n'est spécifié. (Hérité de DataBoundControl.) | .gif) | DataBind()()() | Lie une source de données au contrôle serveur appelé et à tous ses contrôles enfants. (Hérité de BaseDataBoundControl.) | .gif) | DataBind(Boolean) | Lie une source de données au contrôle serveur appelé et tous ses contrôles enfants avec une option pour déclencher l'événement DataBinding. (Hérité de Control.) | .gif) | DataBindChildren | Lie une source de données aux contrôles enfants du contrôle serveur. (Hérité de Control.) | .gif) | Dispose | Permet à un contrôle serveur d'effectuer le nettoyage final avant qu'il soit libéré de la mémoire. (Hérité de Control.) | .gif) | EnsureChildControls | Détermine si le contrôle serveur contient des contrôles enfants. S'il ne contient pas de contrôles enfants, il en crée. (Hérité de Control.) | .gif) | EnsureDataBound | Appelle la méthode DataBind si la propriété DataSourceID est définie et que le contrôle lié aux données est marqué pour demander à être lié. (Hérité de BaseDataBoundControl.) | .gif) | EnsureID | Crée un identificateur pour les contrôles auxquels aucun identificateur n'est assigné. (Hérité de Control.) | .gif) | Equals(Object) | Détermine si l'Object spécifié est égal à l'Object en cours. (Hérité de Object.) | .gif) | Finalize | Autorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de netto***ge avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.) | .gif) | FindControl(String) | Recherche un contrôle serveur possédant le paramètre id spécifié dans le conteneur d'attribution de noms actuel. (Hérité de Control.) | .gif) | FindControl(String, Int32) | Infrastructure. Recherche un contrôle serveur possédant l'ID et l'offset du chemin d'accès spécifiés dans le conteneur d'attribution de noms en cours. La méthode FindControl retourne toujours l'objet RadioButtonList. (Substitue Control..::.FindControl(String, Int32).) | .gif) | Focus | Affecte le focus d'entrée à un contrôle. (Hérité de Control.) | .gif) | GetData | Récupère un objet DataSourceView que le contrôle lié aux données utilise pour exécuter des opérations de données. (Hérité de DataBoundControl.) | .gif) | GetDataSource | Récupère l'interface IDataSource à laquelle le contrôle lié aux données est associé, le cas échéant. (Hérité de DataBoundControl.) | .gif) | GetDesignModeState | Infrastructure. Obtient les données au moment du design pour un contrôle. (Hérité de Control.) | .gif) | GetHashCode | Sert de fonction de hachage pour un type particulier. (Hérité de Object.) | .gif) | GetItemStyle | Récupère le style du type d'élément spécifié, à l'index spécifié dans le contrôle de liste. | .gif) | GetRouteUrl(Object) | Obtient l'URL qui correspond à un jeu de paramètres d'itinéraire. (Hérité de Control.) | .gif) | GetRouteUrl(RouteValueDictionary) | Obtient l'URL qui correspond à un jeu de paramètres d'itinéraire. (Hérité de Control.) | .gif) | GetRouteUrl(String, Object) | Obtient l'URL qui correspond à un jeu de paramètres d'itinéraire et à un nom d'itinéraire. (Hérité de Control.) | .gif) | GetRouteUrl(String, RouteValueDictionary) | Obtient l'URL qui correspond à un jeu de paramètres d'itinéraire et à un nom d'itinéraire. (Hérité de Control.) | .gif) | GetType | Obtient le Type de l'instance actuelle. (Hérité de Object.) | .gif) | GetUniqueIDRelativeTo | Retourne la partie préfixée de la propriété UniqueID du contrôle spécifié. (Hérité de Control.) | .gif) | HasControls | Détermine si le contrôle serveur contient des contrôles enfants. (Hérité de Control.) | .gif) | HasEvents | Retourne une valeur indiquant si des événements sont inscrits pour le contrôle ou des contrôles enfants. (Hérité de Control.) | .gif) | IsLiteralContent | Infrastructure. Détermine si le contrôle serveur ne détient qu'un contenu littéral. (Hérité de Control.) | .gif) | LoadControlState | Restaure des informations sur l'état du contrôle à partir d'une demande de page antérieure enregistrée par la méthode SaveControlState. (Hérité de Control.) | .gif) | LoadPostData | Traite les données publiées pour le contrôle RadioButtonList. | .gif) | LoadViewState | Charge l'état d'affichage enregistré précédemment du contrôle DetailsView. (Hérité de ListControl.) | .gif) | MapPathSecure | Récupère le chemin d'accès physique auquel un chemin d'accès virtuel, absolu ou relatif, correspond. (Hérité de Control.) | .gif) | MarkAsDataBound | Définit l'état du contrôle dans l'état d'affichage comme lié avec succès aux données. (Hérité de DataBoundControl.) | .gif) | MemberwiseClone | Crée une copie superficielle de l'objet Object actif. (Hérité de Object.) | .gif) | MergeStyle | Copie tous les éléments non vides du style spécifié vers le contrôle Web, mais ne remplace aucun élément de style existant du contrôle. Cette méthode est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | OnBubbleEvent | Détermine si l'événement pour le contrôle serveur est passé dans la hiérarchie des contrôles serveur de l'interface utilisateur de la page. (Hérité de Control.) | .gif) | OnDataBinding | Infrastructure. Déclenche l'événement DataBinding. (Hérité de ListControl.) | .gif) | OnDataBound | Déclenche l'événement DataBound. (Hérité de BaseDataBoundControl.) | .gif) | OnDataPropertyChanged | Relie le contrôle lié aux données à ses données après la modification d'une des propriétés de l'identification de la source de données de base. (Hérité de DataBoundControl.) | .gif) | OnDataSourceViewChanged | Déclenche l'événement DataSourceViewChanged. (Hérité de DataBoundControl.) | .gif) | OnInit | Gère l'événement Init. (Hérité de BaseDataBoundControl.) | .gif) | OnLoad | Gère l'événement Control..::.Load. (Hérité de DataBoundControl.) | .gif) | OnPagePreLoad | Définit l'état initialisé du contrôle lié aux données avant que le contrôle ne soit chargé. (Hérité de DataBoundControl.) | .gif) | OnPreRender | Déclenche l'événement PreRender. (Hérité de ListControl.) | .gif) | OnSelectedIndexChanged | Déclenche l'événement SelectedIndexChanged. Cela vous permet de fournir un gestionnaire personnalisé à l'événement. (Hérité de ListControl.) | .gif) | OnTextChanged | Déclenche l'événement TextChanged. (Hérité de ListControl.) | .gif) | OnUnload | Déclenche l'événement Unload. (Hérité de Control.) | .gif) | OpenFile | Obtient un Stream utilisé pour lire un fichier. (Hérité de Control.) | .gif) | PerformDataBinding | Infrastructure. Lie la source de données spécifiée au contrôle dérivé de la classe ListControl. (Hérité de ListControl.) | .gif) | PerformSelect | Récupère les données de la source de données associée. (Hérité de ListControl.) | .gif) | RaiseBubbleEvent | Assigne les sources éventuelles de l'événement et ses informations au parent du contrôle. (Hérité de Control.) | .gif) | RaisePostDataChangedEvent | Indique à l'application ASP.NET le changement d'état du contrôle RadioButtonList. | .gif) | RemovedControl | Appelée après la suppression d'un contrôle enfant dans la collection Controls de l'objet Control. (Hérité de Control.) | .gif) | Render | Affiche le contrôle RadioButtonList sur le client. (Substitue WebControl..::.Render(HtmlTextWriter).) | .gif) | RenderBeginTag | Génère le rendu de la balise d'ouverture HTML du contrôle via le writer spécifié. Cette méthode est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | RenderChildren | Renvoie le contenu des enfants d'un contrôle serveur dans un objet HtmlTextWriter fourni, qui écrit le contenu à rendre sur le client. (Hérité de Control.) | .gif) | RenderContents | Génère le rendu des éléments dans le contrôle ListControl. (Hérité de ListControl.) | .gif) | RenderControl(HtmlTextWriter) | Renvoie le contenu du contrôle serveur dans un objet HtmlTextWriter fourni et stocke des informations de traçage au sujet du contrôle si le traçage est activé. (Hérité de Control.) | .gif) | RenderControl(HtmlTextWriter, ControlAdapter) | Génère le contenu du contrôle serveur dans un objet HtmlTextWriter à l'aide d'un objet ControlAdapter fourni. (Hérité de Control.) | .gif) | RenderEndTag | Génère le rendu de la balise de fermeture HTML du contrôle via le writer spécifié. Cette méthode est principalement utilisée par des développeurs de contrôles. (Hérité de WebControl.) | .gif) | RenderItem | Génère le rendu d'un élément de liste dans le contrôle RadioButtonList. | .gif) | ResolveAdapter | Obtient l'adaptateur de contrôles responsable du rendu du contrôle spécifié. (Hérité de Control.) | .gif) | ResolveClientUrl | Obtient une URL qui peut être utilisée par le navigateur. (Hérité de Control.) | .gif) | ResolveUrl | Convertit une URL en une URL que le client soit en mesure d'utiliser. (Hérité de Control.) | .gif) | SaveControlState | Enregistre les modifications éventuellement apportées à l'état du contrôle serveur depuis la publication de la page sur le serveur. (Hérité de Control.) | .gif) | SaveViewState | Enregistre l'état d'affichage actuel du contrôle dérivé de ListControl et les éléments qu'il contient. (Hérité de ListControl.) | .gif) | SetDesignModeState | Définit les données au moment du design pour un contrôle. (Hérité de Control.) | .gif) | SetPostDataSelection | Infrastructure. Définit la propriété Selected d'un contrôle ListItem après la publication d'une page. (Hérité de ListControl.) | .gif) | SetRenderMethodDelegate | Infrastructure. Assigne un délégué de gestionnaires d'événements pour générer le rendu du contrôle serveur et de son contenu dans son contrôle parent. (Hérité de Control.) | .gif) | ToString | Retourne une chaîne qui représente l'objet actuel. (Hérité de Object.) | .gif) | TrackViewState | Marque le point de départ du suivi et de l'enregistrement des modifications d'état d'affichage apportées à un contrôle dérivé de ListControl. (Hérité de ListControl.) | .gif) | ValidateDataSource | Vérifie que l'objet auquel un contrôle lié aux données se lie est un objet avec qui il peut fonctionner. (Hérité de DataBoundControl.) | .gif) | VerifyMultiSelect | Infrastructure. Détermine si le contrôle de liste prend en charge le mode de sélection multiple. (Hérité de ListControl.) | Début

Méthodes d'extension

Implémentations d'interface explicite
|
| Nom | Description |
|---|
.gif) .gif) | IAttributeAccessor..::.GetAttribute | Infrastructure. Obtient un attribut du contrôle Web avec le nom spécifié. (Hérité de WebControl.) | .gif) .gif) | IAttributeAccessor..::.SetAttribute | Affecte au nom et à la valeur spécifiés un attribut du contrôle Web. (Hérité de WebControl.) | .gif) .gif) | IControlBuilderAccessor..::.ControlBuilder | Pour obtenir une description de ce membre, consultez IControlBuilderAccessor..::.ControlBuilder. (Hérité de Control.) | .gif) .gif) | IControlDesignerAccessor..::.GetDesignModeState | Pour obtenir une description de ce membre, consultez IControlDesignerAccessor..::.GetDesignModeState. (Hérité de Control.) | .gif) .gif) | IControlDesignerAccessor..::.SetDesignModeState | Pour obtenir une description de ce membre, consultez IControlDesignerAccessor..::.SetDesignModeState. (Hérité de Control.) | .gif) .gif) | IControlDesignerAccessor..::.SetOwnerControl | Infrastructure. Pour obtenir une description de ce membre, consultez IControlDesignerAccessor..::.SetOwnerControl. (Hérité de Control.) | .gif) .gif) | IControlDesignerAccessor..::.UserData | Pour obtenir une description de ce membre, consultez IControlDesignerAccessor..::.UserData. (Hérité de Control.) | .gif) .gif) | IDataBindingsAccessor..::.DataBindings | Pour obtenir une description de ce membre, consultez IDataBindingsAccessor..::.DataBindings. (Hérité de Control.) | .gif) .gif) | IDataBindingsAccessor..::.HasDataBindings | Pour obtenir une description de ce membre, consultez IDataBindingsAccessor..::.HasDataBindings. (Hérité de Control.) | .gif) .gif) | IExpressionsAccessor..::.Expressions | Pour obtenir une description de ce membre, consultez IExpressionsAccessor..::.Expressions. (Hérité de Control.) | .gif) .gif) | IExpressionsAccessor..::.HasExpressions | Pour obtenir une description de ce membre, consultez IExpressionsAccessor..::.HasExpressions. (Hérité de Control.) | .gif) .gif) | IParserAccessor..::.AddParsedSubObject | Pour obtenir une description de ce membre, consultez IParserAccessor..::.AddParsedSubObject. (Hérité de Control.) | .gif) .gif) | IPostBackDataHandler..::.LoadPostData | Infrastructure. Traite des données publiées pour le contrôle RadioButtonList. | .gif) .gif) | IPostBackDataHandler..::.RaisePostDataChangedEvent | Infrastructure. Est déclenché lorsque les données publiées pour un contrôle ont été modifiées. | .gif) .gif) | IRepeatInfoUser..::.GetItemStyle | Infrastructure. Récupère le style du type d'élément spécifié, à l'index spécifié dans le contrôle de liste. | .gif) .gif) | IRepeatInfoUser..::.HasFooter | Obtient une valeur qui indique si le contrôle de liste contient une section de pied de page. | .gif) .gif) | IRepeatInfoUser..::.HasHeader | Obtient une valeur qui indique si le contrôle de liste contient une section d'en-tête. | .gif) .gif) | IRepeatInfoUser..::.HasSeparators | Obtient une valeur qui indique si le contrôle de liste contient un séparateur entre les éléments de la liste. | .gif) .gif) | IRepeatInfoUser..::.RenderItem | Infrastructure. Génère le rendu d'un élément de la liste avec les informations spécifiées. | .gif) .gif) | IRepeatInfoUser..::.RepeatedItemCount | Obtient le nombre d'éléments figurant dans le contrôle de liste. | Début

Notes
Dans cette rubrique : IntroductionLe contrôle RadioButtonList propose aux développeurs de pages un groupe de cases d'option à une seule sélection pouvant être généré dynamiquement grâce à une liaison de données. Il comporte une collection Items dont les membres correspondent à chacun des éléments figurant dans la liste. Pour déterminer l'élément sélectionné, testez la propriété SelectedItem de la liste. Spécification de la disposition de listeVous pouvez spécifier la manière dont la liste doit être restituée en définissant les propriétés RepeatLayout et RepeatDirection. Pour plus d'informations sur les options de disposition, consultez l'énumération RepeatLayout. RepeatDirection a la valeur par défaut RepeatDirection.Vertical. L'affectation à cette propriété de la valeur RepeatDirection.Horizontal provoque que le contrôle restitue la liste horizontalement. Certains paramètres RepeatLayout n'autorisent pas la disposition horizontale. Pour plus d'informations, consultez l'énumération RepeatLayout. AccessibilitéSyntaxe déclarative
<asp:RadioButtonList
AccessKey="string"
AppendDataBoundItems="True|False"
AutoPostBack="True|False"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CausesValidation="True|False"
CellPadding="integer"
CellSpacing="integer"
CssClass="string"
DataMember="string"
DataSource="string"
DataSourceID="string"
DataTextField="string"
DataTextFormatString="string"
DataValueField="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
ID="string"
OnDataBinding="DataBinding event handler"
OnDataBound="DataBound event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnSelectedIndexChanged="SelectedIndexChanged event handler"
OnTextChanged="TextChanged event handler"
OnUnload="Unload event handler"
RepeatColumns="integer"
RepeatDirection="Horizontal|Vertical"
RepeatLayout="Table|Flow|OrderedList|UnorderedList"
runat="server"
SelectedIndex="integer"
SelectedValue="string"
SkinID="string"
Style="string"
TabIndex="integer"
TextAlign="Left|Right"
ToolTip="string"
ValidationGroup="string"
Visible="True|False"
Width="size"
>
<asp:ListItem
Enabled="True|False"
Selected="True|False"
Text="string"
Value="string"
/>
</asp:RadioButtonList>

Exemples
L'exemple de code suivant illustre la modification par programme de l'affichage d'un contrôle RadioButtonList. Remarque |
|---|
L'exemple de code suivant utilise un modèle de code de fichier unique ; il est possible qu'il ne fonctionne pas correctement s'il est directement copié dans un fichier code-behind. Cet exemple de code doit être copié dans un fichier texte vide doté d'une extension .aspx. Pour plus d'informations sur le modèle de code des Web Forms, consultez Modèle de code des pages Web ASP.NET. |
<%@ Page Language="VB" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<title>RadioButtonList Example</title>
<script language="VB" runat="server">
Sub Button1_Click(Source As Object, e As EventArgs)
If RadioButtonList1.SelectedIndex > - 1 Then
Label1.Text = "You selected: " & RadioButtonList1.SelectedItem.Text
End If
End Sub
Sub chkLayout_CheckedChanged(sender As Object, e As EventArgs)
If chkLayout.Checked = True Then
RadioButtonList1.RepeatLayout = RepeatLayout.Table
Else
RadioButtonList1.RepeatLayout = RepeatLayout.Flow
End If
End Sub
Sub chkDirection_CheckedChanged(sender As Object, e As EventArgs)
If chkDirection.Checked = True Then
RadioButtonList1.RepeatDirection = RepeatDirection.Horizontal
Else
RadioButtonList1.RepeatDirection = RepeatDirection.Vertical
End If
End Sub
</script>
</head>
<body>
<h3>RadioButtonList Example</h3>
<form id="form1" runat="server">
<asp:RadioButtonList id="RadioButtonList1" runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:CheckBox id="chkLayout" OnCheckedChanged="chkLayout_CheckedChanged" Text="Display Table Layout" Checked="true" AutoPostBack="true" runat="server" />
<br />
<asp:CheckBox id="chkDirection" OnCheckedChanged="chkDirection_CheckedChanged" Text="Display Horizontally" AutoPostBack="true" runat="server" />
<br />
<asp:Button id="Button1" Text="Submit" onclick="Button1_Click" runat="server"/>
<br />
<asp:Label id="Label1" font-names="Verdana" font-size="8pt" runat="server"/>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<title>RadioButtonList Example</title>
<script language="C#" runat="server">
void Button1_Click(object Source, EventArgs e)
{
if (RadioButtonList1.SelectedIndex > -1)
{
Label1.Text = "You selected: " + RadioButtonList1.SelectedItem.Text;
}
}
void chkLayout_CheckedChanged(Object sender, EventArgs e)
{
if (chkLayout.Checked == true)
{
RadioButtonList1.RepeatLayout = RepeatLayout.Table;
}
else
{
RadioButtonList1.RepeatLayout = RepeatLayout.Flow;
}
}
void chkDirection_CheckedChanged(Object sender, EventArgs e)
{
if (chkDirection.Checked == true)
{
RadioButtonList1.RepeatDirection = RepeatDirection.Horizontal;
}
else
{
RadioButtonList1.RepeatDirection = RepeatDirection.Vertical;
}
}
</script>
</head>
<body>
<h3>RadioButtonList Example</h3>
<form id="form1" runat="server">
<asp:RadioButtonList id="RadioButtonList1" runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:CheckBox id="chkLayout" OnCheckedChanged="chkLayout_CheckedChanged" Text="Display Table Layout" Checked="true" AutoPostBack="true" runat="server" />
<br />
<asp:CheckBox id="chkDirection" OnCheckedChanged="chkDirection_CheckedChanged" Text="Display Horizontally" AutoPostBack="true" runat="server" />
<br />
<asp:Button id="Button1" Text="Submit" onclick="Button1_Click" runat="server"/>
<br />
<asp:Label id="Label1" font-names="Verdana" font-size="8pt" runat="server"/>
</form>
</body>
</html>

Informations de version
.NET FrameworkPris en charge dans : 4, 3.5, 3.0, 2.0, 1.1, 1.0

Plateformes
Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Sécurité des threads
Tous les membres static ( Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi
RéférenceAutres ressources
|