.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 | |
|---|---|---|
|
Label | Returns an HTML label element and the property name of the property that is represented by the specified expression. |
|
LabelFor<TModel, TValue> | Returns an HTML label element and the property name of the property that is represented by the specified expression. |
|
LabelForModel | Returns an HTML label element and the property name of the property that is represented by the model. |
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