Bagikan melalui


HtmlHelper.GenerateRadioButton Metode

Definisi

Buat tombol radio.

protected:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateRadioButton(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, Nullable<bool> isChecked, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateRadioButton (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool? isChecked, object htmlAttributes);
abstract member GenerateRadioButton : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * Nullable<bool> * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GenerateRadioButton : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * Nullable<bool> * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Overridable Function GenerateRadioButton (modelExplorer As ModelExplorer, expression As String, value As Object, isChecked As Nullable(Of Boolean), htmlAttributes As Object) As IHtmlContent

Parameter

modelExplorer
ModelExplorer

ModelExplorer.

expression
String

Ekspresi.

value
Object

Nilainya.

isChecked
Nullable<Boolean>

Jika tombol radio dicentang.

htmlAttributes
Object

yang Object berisi atribut HTML untuk elemen . Atau, instans yang IDictionary<TKey,TValue> berisi atribut HTML.

Mengembalikan

IHtmlContent.

Berlaku untuk