Udostępnij za pośrednictwem


HtmlHelper.GenerateRadioButton Metoda

Definicja

Wygeneruj przycisk radiowy.

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

Parametry

modelExplorer
ModelExplorer

Element ModelExplorer.

expression
String

Wyrażenie.

value
Object

Wartość.

isChecked
Nullable<Boolean>

Jeśli przycisk radiowy jest zaznaczony.

htmlAttributes
Object

Element Object zawierający atrybuty HTML elementu . Alternatywnie IDictionary<TKey,TValue> wystąpienie zawierające atrybuty HTML.

Zwraca

Element IHtmlContent.

Dotyczy