HtmlHelper.GenerateCheckBox Método

Definição

Gere uma caixa de marcar.

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

Parâmetros

modelExplorer
ModelExplorer

O ModelExplorer.

expression
String

A expressão.

isChecked
Nullable<Boolean>

Se a caixa deve ser marcada.

htmlAttributes
Object

Um Object que contém os atributos HTML para o elemento . Como alternativa, uma IDictionary<TKey,TValue> instância que contém os atributos HTML.

Retornos

Aplica-se a