IHtmlGenerator.GenerateTextBox Méthode

Définition

Génère un <élément input type="text »>

public:
 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 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
Public Function GenerateTextBox (viewContext As ViewContext, modelExplorer As ModelExplorer, expression As String, value As Object, format As String, htmlAttributes As Object) As TagBuilder

Paramètres

viewContext
ViewContext

Un ViewContext instance pour l’étendue actuelle.

modelExplorer
ModelExplorer

ModelExplorer pour expression.

expression
String

Nom de l’expression, relatif au modèle actuel.

value
Object
format
String
htmlAttributes
Object

Object qui contient les paramètres d’un itinéraire. Les paramètres sont récupérés par réflexion en examinant les propriétés de .Object Il Object est généralement créé à l’aide de la Object syntaxe d’initialiseur. IDictionary<TKey,TValue> Une instance contenant les paramètres d’itinéraire.

Retours

S’applique à