Aracılığıyla paylaş


IHtmlGenerator.GenerateRadioButton Yöntem

Tanım

Giriş <türü="radio"> öğesi oluşturma

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

Parametreler

viewContext
ViewContext

ViewContext Geçerli kapsam için bir örnek.

modelExplorer
ModelExplorer

ModelExplorer için .expression

expression
String

geçerli modele göre ifade adı.

value
Object

verilen radyo düğmesinin değeri

isChecked
Nullable<Boolean>

Radyo düğmesinin işaretli olup olmadığı

htmlAttributes
Object

Bir Object yol için parametreleri içeren. Parametreler, yansıma aracılığıyla, özelliklerini Objectinceleyerek alınır. Bu Object genellikle başlatıcı söz dizimi kullanılarak Object oluşturulur. Alternatif olarak, yol parametrelerini içeren bir IDictionary<TKey,TValue> örnek.

Döndürülenler

Şunlara uygulanır