Dela via


HtmlHelperDisplayNameExtensions Class

Definition

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

public ref class HtmlHelperDisplayNameExtensions abstract sealed
public static class HtmlHelperDisplayNameExtensions
type HtmlHelperDisplayNameExtensions = class
Public Module 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