DisplayNameForModel Method
Collapse the table of content
Expand the table of content

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)

public static MvcHtmlString DisplayNameForModel(
	this HtmlHelper html


Type: System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

Return Value

Type: System.Web.Mvc.MvcHtmlString

The display name for the model.

Return to top
© 2015 Microsoft