Aracılığıyla paylaş


HtmlHelper.GenerateRadioButton Yöntem

Tanım

Radyo düğmesi oluşturma.

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

Parametreler

modelExplorer
ModelExplorer

ModelExplorer.

expression
String

İfade.

value
Object

Değer.

isChecked
Nullable<Boolean>

Radyo düğmesi işaretliyse.

htmlAttributes
Object

Object öğesinin HTML özniteliklerini içeren bir. Alternatif olarak, HTML özniteliklerini içeren bir IDictionary<TKey,TValue> örnek.

Döndürülenler

IHtmlContent.

Şunlara uygulanır