DisplayNameExtensions.DisplayName(HtmlHelper, String) DisplayNameExtensions.DisplayName(HtmlHelper, String) DisplayNameExtensions.DisplayName(HtmlHelper, String) Method

Definition

Gets the display name.

public static System.Web.Mvc.MvcHtmlString DisplayName (this System.Web.Mvc.HtmlHelper html, string expression);
static member DisplayName : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function DisplayName (html As HtmlHelper, expression As String) As MvcHtmlString

Parameters

html
HtmlHelper HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

expression
String String String

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

Returns

Applies to