Поделиться через


DefaultHtmlGenerator.GenerateInput Метод

Определение

Создание входного тега.

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

Параметры

viewContext
ViewContext

ViewContext.

inputType
InputType

InputType.

modelExplorer
ModelExplorer

ModelExplorer.

expression
String

Выражение.

value
Object

Значение.

useViewData
Boolean

Следует ли использовать данные просмотра.

isChecked
Boolean

Если входные данные проверены.

setId
Boolean

Указывает, должен ли этот параметр задавать идентификатор.

isExplicitValue
Boolean

Указывает, является ли это явным значением.

format
String

Формат.

htmlAttributes
IDictionary<String,Object>

Атрибуты HTML.

Возвращаемое значение

Применяется к