LabelExtensions.LabelForModel Method

Include Protected Members
Include Inherited Members

Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member LabelForModel(HtmlHelper) Returns an HTML label element and the property name of the property that is represented by the model.
Public methodStatic member LabelForModel(HtmlHelper, IDictionary<String, Object>) Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic member LabelForModel(HtmlHelper, Object) Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic member LabelForModel(HtmlHelper, String) Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.
Public methodStatic member LabelForModel(HtmlHelper, String, IDictionary<String, Object>) Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic member LabelForModel(HtmlHelper, String, Object) Returns an HTML label element and the property name of the property that is represented by the specified expression.

Top

See Also

Reference

LabelExtensions Class

System.Web.Mvc.Html Namespace