Share via


DisplayNameExtensions.DisplayNameForModel Method (HtmlHelper)

 

Gets the display name for the model.

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

Syntax

public static MvcHtmlString DisplayNameForModel(
    this HtmlHelper html
)
public:
[ExtensionAttribute]
static MvcHtmlString^ DisplayNameForModel(
    HtmlHelper^ html
)
static member DisplayNameForModel : 
        html:HtmlHelper -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function DisplayNameForModel (
    html As HtmlHelper
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

The display name for the model.

See Also

DisplayNameExtensions Class
System.Web.Mvc.Html Namespace

Return to top