Compartir a través de


DefaultHtmlGenerator.GenerateTextBox Método

Definición

Genera un <elemento input type="text">

public:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateTextBox(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, System::String ^ format, System::Object ^ htmlAttributes);
public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateTextBox (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, string format, object htmlAttributes);
abstract member GenerateTextBox : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateTextBox : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Overridable Function GenerateTextBox (viewContext As ViewContext, modelExplorer As ModelExplorer, expression As String, value As Object, format As String, 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.

value
Object
format
String
htmlAttributes
Object

que Object contiene los parámetros de una ruta. Los parámetros se recuperan a través de la reflexión mediante el examen de las propiedades de Object. Normalmente se Object crea mediante Object la sintaxis del inicializador. Como alternativa, una IDictionary<TKey,TValue> instancia que contiene los parámetros de ruta.

Devoluciones

Implementaciones

Se aplica a