DisplayNameExtensions.DisplayName Method (HtmlHelper, String)
Gets the display name.
Namespace: System.Web.Mvc.Html
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public static MvcHtmlString DisplayName(
this HtmlHelper html,
string expression
)
public:
[ExtensionAttribute]
static MvcHtmlString^ DisplayName(
HtmlHelper^ html,
String^ expression
)
static member DisplayName :
html:HtmlHelper *
expression:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function DisplayName (
html As HtmlHelper,
expression As String
) As MvcHtmlString
Parameters
html
Type: System.Web.Mvc.HtmlHelperThe HTML helper instance that this method extends.
expression
Type: System.StringAn expression that identifies the object that contains the display name.
Return Value
Type: System.Web.Mvc.MvcHtmlString
The display name.
Remarks
Updated 13 March 2011
See Also
DisplayNameExtensions Class
System.Web.Mvc.Html Namespace
Return to top