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
- htmlHelper
Type: System.Web.Mvc.HtmlHelper
The html helper.
- name
Type: System.String
The name of this radio button list.
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).