RadioListExtensions.RadioButtonList Method (HtmlHelper, String)

Displays a list control that encapsulates a group of radio button controls.

Namespace:  Microsoft.Web.Mvc
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function RadioButtonList ( _
    htmlHelper As HtmlHelper, _
    name As String _
) As MvcHtmlString()
'Usage
Dim htmlHelper As HtmlHelper 
Dim name As String 
Dim returnValue As MvcHtmlString()

returnValue = htmlHelper.RadioButtonList(name)
public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name
)
[ExtensionAttribute]
public:
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper, 
    String^ name
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper * 
        name:string -> MvcHtmlString[] 
public static function RadioButtonList(
    htmlHelper : HtmlHelper, 
    name : String
) : MvcHtmlString[]

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]
A MvcHtmlString that displays the radio button list.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).

See Also

Reference

RadioListExtensions Class

RadioButtonList Overload

Microsoft.Web.Mvc Namespace