Bagikan melalui


ValueExtensions.ValueFor Metode

Definisi

Overload

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

Menyediakan mekanisme untuk membuat markup HTML kustom yang kompatibel dengan ASP.NET pengikat dan templat model MVC.

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

Menyediakan mekanisme untuk membuat markup HTML kustom yang kompatibel dengan ASP.NET pengikat dan templat model MVC.

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

Menyediakan mekanisme untuk membuat markup HTML kustom yang kompatibel dengan ASP.NET pengikat dan templat model MVC.

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

Jenis parameter

TModel

Model.

TProperty

Properti .

Parameter

html
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk diekspos.

Mengembalikan

Markup HTML untuk nilai .

Berlaku untuk

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

Menyediakan mekanisme untuk membuat markup HTML kustom yang kompatibel dengan ASP.NET pengikat dan templat model MVC.

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

Jenis parameter

TModel

Model.

TProperty

Properti .

Parameter

html
HtmlHelper<TModel>

Instans pembantu HTML yang diperluas metode ini.

expression
Expression<Func<TModel,TProperty>>

Ekspresi yang mengidentifikasi objek yang berisi properti untuk diekspos.

format
String

String format.

Mengembalikan

Markup HTML untuk nilai .

Berlaku untuk