RadioListExtensions.RadioButtonList Method

 

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)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static RadioButtonList(HtmlHelper, String)

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

System_CAPS_pubmethodSystem_CAPS_static RadioButtonList(HtmlHelper, String, IDictionary<String, Object>)

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

System_CAPS_pubmethodSystem_CAPS_static RadioButtonList(HtmlHelper, String, IEnumerable<SelectListItem>)

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

System_CAPS_pubmethodSystem_CAPS_static RadioButtonList(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>)

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

System_CAPS_pubmethodSystem_CAPS_static RadioButtonList(HtmlHelper, String, IEnumerable<SelectListItem>, Object)

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

System_CAPS_pubmethodSystem_CAPS_static RadioButtonList(HtmlHelper, String, Object)

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

See Also

RadioListExtensions Class
Microsoft.Web.Mvc Namespace

Return to top

RadioListExtensions.RadioButtonList Method (HtmlHelper, String)

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

Syntax

public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name
)
public:
[ExtensionAttribute]
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper,
    String^ name
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper *
        name:string -> MvcHtmlString[]
<ExtensionAttribute>
Public Shared Function RadioButtonList (
    htmlHelper As HtmlHelper,
    name As String
) As MvcHtmlString()

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]

A MvcHtmlString that displays the radio button list.

Return to top

RadioListExtensions.RadioButtonList Method (HtmlHelper, String, IDictionary<String, Object>)

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

Syntax

public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name,
    IDictionary<string, object> htmlAttributes
)
public:
[ExtensionAttribute]
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper,
    String^ name,
    IDictionary<String^, Object^>^ htmlAttributes
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper *
        name:string *
        htmlAttributes:IDictionary<string, Object> -> MvcHtmlString[]
<ExtensionAttribute>
Public Shared Function RadioButtonList (
    htmlHelper As HtmlHelper,
    name As String,
    htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString()

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]

A MvcHtmlString that displays the radio button list.

Return to top

RadioListExtensions.RadioButtonList Method (HtmlHelper, String, IEnumerable<SelectListItem>)

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

Syntax

public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name,
    IEnumerable<SelectListItem> selectList
)
public:
[ExtensionAttribute]
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper,
    String^ name,
    IEnumerable<SelectListItem^>^ selectList
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper *
        name:string *
        selectList:IEnumerable<SelectListItem> -> MvcHtmlString[]
<ExtensionAttribute>
Public Shared Function RadioButtonList (
    htmlHelper As HtmlHelper,
    name As String,
    selectList As IEnumerable(Of SelectListItem)
) As MvcHtmlString()

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]

A MvcHtmlString that displays the radio button list.

Return to top

RadioListExtensions.RadioButtonList Method (HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>)

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

Syntax

public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name,
    IEnumerable<SelectListItem> selectList,
    IDictionary<string, object> htmlAttributes
)
public:
[ExtensionAttribute]
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper,
    String^ name,
    IEnumerable<SelectListItem^>^ selectList,
    IDictionary<String^, Object^>^ htmlAttributes
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper *
        name:string *
        selectList:IEnumerable<SelectListItem> *
        htmlAttributes:IDictionary<string, Object> -> MvcHtmlString[]
<ExtensionAttribute>
Public Shared Function RadioButtonList (
    htmlHelper As HtmlHelper,
    name As String,
    selectList As IEnumerable(Of SelectListItem),
    htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString()

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]

A MvcHtmlString that displays the radio button list.

Return to top

RadioListExtensions.RadioButtonList Method (HtmlHelper, String, IEnumerable<SelectListItem>, Object)

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

Syntax

public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name,
    IEnumerable<SelectListItem> selectList,
    object htmlAttributes
)
public:
[ExtensionAttribute]
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper,
    String^ name,
    IEnumerable<SelectListItem^>^ selectList,
    Object^ htmlAttributes
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper *
        name:string *
        selectList:IEnumerable<SelectListItem> *
        htmlAttributes:Object -> MvcHtmlString[]
<ExtensionAttribute>
Public Shared Function RadioButtonList (
    htmlHelper As HtmlHelper,
    name As String,
    selectList As IEnumerable(Of SelectListItem),
    htmlAttributes As Object
) As MvcHtmlString()

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]

A MvcHtmlString that displays the radio button list.

Return to top

RadioListExtensions.RadioButtonList Method (HtmlHelper, String, Object)

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

Syntax

public static MvcHtmlString[] RadioButtonList(
    this HtmlHelper htmlHelper,
    string name,
    object htmlAttributes
)
public:
[ExtensionAttribute]
static array<MvcHtmlString^>^ RadioButtonList(
    HtmlHelper^ htmlHelper,
    String^ name,
    Object^ htmlAttributes
)
static member RadioButtonList : 
        htmlHelper:HtmlHelper *
        name:string *
        htmlAttributes:Object -> MvcHtmlString[]
<ExtensionAttribute>
Public Shared Function RadioButtonList (
    htmlHelper As HtmlHelper,
    name As String,
    htmlAttributes As Object
) As MvcHtmlString()

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString[]

A MvcHtmlString that displays the radio button list.

Return to top