RadioListExtensions.RadioButtonList Method (HtmlHelper, String, Object)

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, _
    htmlAttributes As Object _
) As MvcHtmlString()
'Usage
Dim htmlHelper As HtmlHelper 
Dim name As String 
Dim htmlAttributes As Object 
Dim returnValue As MvcHtmlString()

returnValue = htmlHelper.RadioButtonList(name, _
    htmlAttributes)
public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name,
    Object htmlAttributes
)
[ExtensionAttribute]
public:
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper, 
    String^ name, 
    Object^ htmlAttributes
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper * 
        name:string * 
        htmlAttributes:Object -> MvcHtmlString[] 
public static function RadioButtonList(
    htmlHelper : HtmlHelper, 
    name : String, 
    htmlAttributes : Object
) : 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