Share via


DisplayNameExtensions Class

Provides a mechanism to get display names.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Html.DisplayNameExtensions

Namespace:  System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class DisplayNameExtensions
'Usage
public static class DisplayNameExtensions
[ExtensionAttribute]
public ref class DisplayNameExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type DisplayNameExtensions =  class end
public final class DisplayNameExtensions

The DisplayNameExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member DisplayName Gets the display name.
Public methodStatic member DisplayNameFor<TModel, TValue>(HtmlHelper<IEnumerable<TModel>>, Expression<Func<TModel, TValue>>) Gets the display name for the model.
Public methodStatic member DisplayNameFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>) Gets the display name for the model.
Public methodStatic member DisplayNameForModel Gets the display name for the model.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc.Html Namespace