HtmlHelperDisplayNameExtensions HtmlHelperDisplayNameExtensions HtmlHelperDisplayNameExtensions Class

Definition

DisplayName-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

public static class HtmlHelperDisplayNameExtensions
type HtmlHelperDisplayNameExtensions = class
Public Module HtmlHelperDisplayNameExtensions
Inheritance
HtmlHelperDisplayNameExtensionsHtmlHelperDisplayNameExtensionsHtmlHelperDisplayNameExtensions

Methods

DisplayNameFor<TModelItem,TResult>(IHtmlHelper<IEnumerable<TModelItem>>, Expression<Func<TModelItem,TResult>>) DisplayNameFor<TModelItem,TResult>(IHtmlHelper<IEnumerable<TModelItem>>, Expression<Func<TModelItem,TResult>>) DisplayNameFor<TModelItem,TResult>(IHtmlHelper<IEnumerable<TModelItem>>, Expression<Func<TModelItem,TResult>>)

Returns the display name for the specified expression if the current model represents a collection.

DisplayNameForModel(IHtmlHelper) DisplayNameForModel(IHtmlHelper) DisplayNameForModel(IHtmlHelper)

Returns the display name for the current model.

Applies to