Export (0) Print
Expand All

LabelExtensions.LabelFor Method

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.

  Name Description
Public method Static 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 method Static 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 method Static 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 method Static 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 method Static 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 method Static 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
Show:
© 2014 Microsoft