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
)

Parameters

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
Show: