Compartir a través de


DefaultHtmlGenerator.GenerateCheckBox Método

Definición

Generar un <tipo de entrada="checkbox".../> elemento.

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

Parámetros

viewContext
ViewContext

Instancia ViewContext del ámbito actual.

modelExplorer
ModelExplorer

ModelExplorer para expression.

expression
String

Nombre de expresión, en relación con el modelo actual.

isChecked
Nullable<Boolean>

Estado inicial del elemento de casilla.

htmlAttributes
Object

que Object contiene los atributos HTML del elemento . Como alternativa, una IDictionary<TKey,TValue> instancia de que contiene los atributos HTML.

Devoluciones

Instancia TagBuilder del <elemento input type="checkbox".../> .

Implementaciones

Se aplica a