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 | |
---|---|---|
RadioButtonList(HtmlHelper, String) | Displays a list control that encapsulates a group of radio button controls. |
|
RadioButtonList(HtmlHelper, String, IDictionary<String, Object>) | Displays a list control that encapsulates a group of radio button controls. |
|
RadioButtonList(HtmlHelper, String, IEnumerable<SelectListItem>) | Displays a list control that encapsulates a group of radio button controls. |
|
RadioButtonList(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>) | Displays a list control that encapsulates a group of radio button controls. |
|
RadioButtonList(HtmlHelper, String, IEnumerable<SelectListItem>, Object) | Displays a list control that encapsulates a group of radio button controls. |
|
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
htmlHelper
Type: System.Web.Mvc.HtmlHelperThe html helper.
name
Type: System.StringThe name of this radio button list.
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
htmlHelper
Type: System.Web.Mvc.HtmlHelperThe html helper.
name
Type: System.StringThe name of this radio button list.
htmlAttributes
Type: System.Collections.Generic.IDictionary<String, Object>The html attributes.
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
htmlHelper
Type: System.Web.Mvc.HtmlHelperThe html helper.
name
Type: System.StringThe name of this radio button list.
selectList
Type: System.Collections.Generic.IEnumerable<SelectListItem>The list of radio button to select.
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
htmlHelper
Type: System.Web.Mvc.HtmlHelperThe html helper.
name
Type: System.StringThe name of this radio button list.
selectList
Type: System.Collections.Generic.IEnumerable<SelectListItem>The list of radio button to select.
htmlAttributes
Type: System.Collections.Generic.IDictionary<String, Object>The html attributes.
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
htmlHelper
Type: System.Web.Mvc.HtmlHelperThe html helper.
name
Type: System.StringThe name of this radio button list.
selectList
Type: System.Collections.Generic.IEnumerable<SelectListItem>The list of radio button to select.
htmlAttributes
Type: System.ObjectThe html attributes.
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
htmlHelper
Type: System.Web.Mvc.HtmlHelperThe html helper.
name
Type: System.StringThe name of this radio button list.
htmlAttributes
Type: System.ObjectThe html attributes.
Return Value
Type: System.Web.Mvc.MvcHtmlString[]
A MvcHtmlString that displays the radio button list.
Return to top