LabelExtensions.LabelFor 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.

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 LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>) Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic member LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, 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 LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, Object) Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic member LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, 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 LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, 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 LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, 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