Freigeben über


DefaultHtmlGenerator.GenerateInput Methode

Definition

Generieren Sie ein Eingabetag.

protected:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateInput(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewFeatures::InputType inputType, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, bool useViewData, bool isChecked, bool setId, bool isExplicitValue, System::String ^ format, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateInput (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.InputType inputType, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, bool isChecked, bool setId, bool isExplicitValue, string format, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
abstract member GenerateInput : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.InputType * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * bool * bool * bool * bool * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateInput : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.InputType * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * bool * bool * bool * bool * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Protected Overridable Function GenerateInput (viewContext As ViewContext, inputType As InputType, modelExplorer As ModelExplorer, expression As String, value As Object, useViewData As Boolean, isChecked As Boolean, setId As Boolean, isExplicitValue As Boolean, format As String, htmlAttributes As IDictionary(Of String, Object)) As TagBuilder

Parameter

viewContext
ViewContext

Die ViewContext.

inputType
InputType

Die InputType.

modelExplorer
ModelExplorer

Die ModelExplorer.

expression
String

Der Ausdruck.

value
Object

Der Wert.

useViewData
Boolean

Gibt an, ob Daten anzeigen verwendet werden sollen.

isChecked
Boolean

Wenn die Eingabe aktiviert ist.

setId
Boolean

Gibt an, ob die ID festgelegt werden soll.

isExplicitValue
Boolean

Gibt an, ob dies ein expliziter Wert ist.

format
String

Das Format.

htmlAttributes
IDictionary<String,Object>

Die HTML-Attribute.

Gibt zurück

Gilt für: