DisplayNameExtensions.DisplayNameFor Método

Definición

Sobrecargas

DisplayNameFor<TModel,TValue>(HtmlHelper<IEnumerable<TModel>>, Expression<Func<TModel,TValue>>)

Obtiene el nombre para mostrar del modelo.

DisplayNameFor<TModel,TValue>(HtmlHelper<TModel>, Expression<Func<TModel,TValue>>)

Obtiene el nombre para mostrar del modelo.

DisplayNameFor<TModel,TValue>(HtmlHelper<IEnumerable<TModel>>, Expression<Func<TModel,TValue>>)

Obtiene el nombre para mostrar del modelo.

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

Parámetros de tipo

TModel

Tipo del modelo.

TValue

Tipo del valor.

Parámetros

html
HtmlHelper<IEnumerable<TModel>>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TValue>>

Expresión que identifica el objeto que contiene el nombre para mostrar.

Devoluciones

Nombre para mostrar del modelo.

Se aplica a

DisplayNameFor<TModel,TValue>(HtmlHelper<TModel>, Expression<Func<TModel,TValue>>)

Obtiene el nombre para mostrar del modelo.

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

Parámetros de tipo

TModel

Tipo del modelo.

TValue

Tipo del valor.

Parámetros

html
HtmlHelper<TModel>

Instancia del asistente HTML que extiende este método.

expression
Expression<Func<TModel,TValue>>

Expresión que identifica el objeto que contiene el nombre para mostrar.

Devoluciones

Nombre para mostrar del modelo.

Se aplica a