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 | |
---|---|---|
![]() ![]() |
DisplayName | Gets the display name. |
![]() ![]() |
DisplayNameFor<TModel, TValue>(HtmlHelper<IEnumerable<TModel>>, Expression<Func<TModel, TValue>>) | Gets the display name for the model. |
![]() ![]() |
DisplayNameFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>) | Gets the display name for the model. |
![]() ![]() |
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.