Bagikan melalui


IHtmlGenerator.GenerateRadioButton Metode

Definisi

<Menghasilkan elemen input type="radio">

public:
 Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateRadioButton(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, Nullable<bool> isChecked, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRadioButton (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool? isChecked, object htmlAttributes);
abstract member GenerateRadioButton : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * Nullable<bool> * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Function GenerateRadioButton (viewContext As ViewContext, modelExplorer As ModelExplorer, expression As String, value As Object, isChecked As Nullable(Of Boolean), htmlAttributes As Object) As TagBuilder

Parameter

viewContext
ViewContext

Instans ViewContext untuk cakupan saat ini.

modelExplorer
ModelExplorer

ModelExplorer untuk expression.

expression
String

Nama ekspresi, relatif terhadap model saat ini.

value
Object

nilai tombol radio yang diberikan

isChecked
Nullable<Boolean>

Apakah tombol radio dicentang atau tidak

htmlAttributes
Object

Object yang berisi parameter untuk rute. Parameter diambil melalui refleksi dengan memeriksa properti .Object Ini Object biasanya dibuat menggunakan Object sintaks penginisialisasi. Atau, instans yang IDictionary<TKey,TValue> berisi parameter rute.

Mengembalikan

Berlaku untuk