HtmlHelperDisplayNameExtensions Class

Definition

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

C#
public static class HtmlHelperDisplayNameExtensions
Inheritance
HtmlHelperDisplayNameExtensions

Methods

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)

Returns the display name for the current model.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0