Bagikan melalui


InputExtensions.TextBoxFor Metode

Definisi

Overload

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

Mengembalikan elemen input teks.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Mengembalikan elemen input teks untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan, menggunakan atribut HTML yang ditentukan.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>)

Mengembalikan elemen input teks.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Mengembalikan elemen input teks untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Mengembalikan elemen input teks untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan, menggunakan atribut HTML yang ditentukan.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object)

Mengembalikan elemen input teks.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

Mengembalikan elemen input teks.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String) As MvcHtmlString

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

format
String

String yang digunakan untuk memformat input.

Mengembalikan

Elemen input yang atribut jenisnya diatur ke "teks".

Berlaku untuk

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Mengembalikan elemen input teks untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan, menggunakan atribut HTML yang ditentukan.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, object htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As Object) As MvcHtmlString

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti yang akan dirender.

htmlAttributes
Object

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen input HTML yang atribut jenisnya diatur ke "teks" untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameter expression null atau kosong.

Berlaku untuk

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>)

Mengembalikan elemen input teks.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

format
String

String yang digunakan untuk memformat input.

htmlAttributes
IDictionary<String,Object>

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen input yang atribut jenisnya diatur ke "teks".

Berlaku untuk

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Mengembalikan elemen input teks untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty))) As MvcHtmlString

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti yang akan dirender.

Mengembalikan

Elemen input HTML yang atribut jenisnya diatur ke "teks" untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameter expression null atau kosong.

Berlaku untuk

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Mengembalikan elemen input teks untuk setiap properti dalam objek yang diwakili oleh ekspresi yang ditentukan, menggunakan atribut HTML yang ditentukan.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti yang akan dirender.

htmlAttributes
IDictionary<String,Object>

Kamus yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Atribut jenis elemen input HTML diatur ke "teks" untuk setiap properti dalam objek yang diwakili oleh ekspresi.

Pengecualian

Parameter expression null atau kosong.

Berlaku untuk

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object)

Mengembalikan elemen input teks.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format, object htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String, htmlAttributes As Object) As MvcHtmlString

Jenis parameter

TModel

Jenis model.

TProperty

Jenis nilai.

Parameter

htmlHelper
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk ditampilkan.

format
String

String yang digunakan untuk memformat input.

htmlAttributes
Object

Objek yang berisi atribut HTML yang akan diatur untuk elemen .

Mengembalikan

Elemen input yang atribut jenisnya diatur ke "teks".

Berlaku untuk