DisplayNameExtensions.DisplayName Method (HtmlHelper, String)

 

Gets the display name.

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

public static MvcHtmlString DisplayName(
	this HtmlHelper html,
	string expression
)

Parameters

html
Type: System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

expression
Type: System.String

An expression that identifies the object that contains the display name.

Return Value

Type: System.Web.Mvc.MvcHtmlString

The display name.

Updated 13 March 2011

Return to top
Show: