HtmlHelper.GenerateTextBox 方法

定义

生成文本框。

protected:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateTextBox(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, System::String ^ format, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateTextBox (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, string format, object htmlAttributes);
abstract member GenerateTextBox : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GenerateTextBox : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Overridable Function GenerateTextBox (modelExplorer As ModelExplorer, expression As String, value As Object, format As String, htmlAttributes As Object) As IHtmlContent

参数

modelExplorer
ModelExplorer

ModelExplorer

expression
String

表达式。

value
Object

值。

format
String

格式。

htmlAttributes
Object

一个 Object ,其中包含元素的 HTML 属性。 或者,一个 IDictionary<TKey,TValue> 包含 HTML 属性的 实例。

返回

IHtmlContent

适用于