DisplayNameExtensions.DisplayNameFor Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
| DisplayNameFor<TModel,TValue>(HtmlHelper<IEnumerable<TModel>>, Expression<Func<TModel,TValue>>) |
Mendapatkan nama tampilan untuk model. |
| DisplayNameFor<TModel,TValue>(HtmlHelper<TModel>, Expression<Func<TModel,TValue>>) |
Mendapatkan nama tampilan untuk model. |
DisplayNameFor<TModel,TValue>(HtmlHelper<IEnumerable<TModel>>, Expression<Func<TModel,TValue>>)
Mendapatkan nama tampilan untuk model.
public static System.Web.Mvc.MvcHtmlString DisplayNameFor<TModel,TValue>(this System.Web.Mvc.HtmlHelper<System.Collections.Generic.IEnumerable<TModel>> html, System.Linq.Expressions.Expression<Func<TModel,TValue>> expression);
static member DisplayNameFor : System.Web.Mvc.HtmlHelper<seq<'Model>> * System.Linq.Expressions.Expression<Func<'Model, 'Value>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DisplayNameFor(Of TModel, TValue) (html As HtmlHelper(Of IEnumerable(Of TModel)), expression As Expression(Of Func(Of TModel, TValue))) As MvcHtmlString
Jenis parameter
- TModel
Jenis model.
- TValue
Jenis nilai.
Parameter
- html
- HtmlHelper<IEnumerable<TModel>>
Instans pembantu HTML yang diperluas metode ini.
- expression
- Expression<Func<TModel,TValue>>
Ekspresi yang mengidentifikasi objek yang berisi nama tampilan.
Mengembalikan
Nama tampilan untuk model.
Berlaku untuk
DisplayNameFor<TModel,TValue>(HtmlHelper<TModel>, Expression<Func<TModel,TValue>>)
Mendapatkan nama tampilan untuk model.
public static System.Web.Mvc.MvcHtmlString DisplayNameFor<TModel,TValue>(this System.Web.Mvc.HtmlHelper<TModel> html, System.Linq.Expressions.Expression<Func<TModel,TValue>> expression);
static member DisplayNameFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Value>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DisplayNameFor(Of TModel, TValue) (html As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TValue))) As MvcHtmlString
Jenis parameter
- TModel
Jenis model.
- TValue
Jenis nilai.
Parameter
- html
- HtmlHelper<TModel>
Instans pembantu HTML yang diperluas metode ini.
- expression
- Expression<Func<TModel,TValue>>
Ekspresi yang mengidentifikasi objek yang berisi nama tampilan.
Mengembalikan
Nama tampilan untuk model.