共用方式為


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

適用於