LabelExtensions Class (System.Web.Mvc.Html)

Switch View :
ScriptFree
.NET Framework Class Library
LabelExtensions Class

Represents support for the HTML label element in an ASP.NET MVC view.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Html.LabelExtensions

Namespace:  System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
Syntax

Visual Basic
<ExtensionAttribute> _
Public NotInheritable Class LabelExtensions
C#
public static class LabelExtensions
Visual C++
[ExtensionAttribute]
public ref class LabelExtensions abstract sealed

The LabelExtensions type exposes the following members.

Methods

  Name Description
Public method Static member Label 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> Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public method Static member LabelForModel Returns an HTML label element and the property name of the property that is represented by the model.
Top
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

Other Resources