Export (0) Print
Expand All

LabelExtensions Class

.NET Framework 4

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

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

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

public static class LabelExtensions

The LabelExtensions type exposes the following members.

  NameDescription
Public methodStatic memberLabelReturns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic memberLabelFor<TModel, TValue>Returns an HTML label element and the property name of the property that is represented by the specified expression.
Public methodStatic memberLabelForModelReturns an HTML label element and the property name of the property that is represented by the model.
Top

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

Community Additions

ADD
Show:
© 2014 Microsoft