LabelExtensions Class

Visual Studio 2010

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)

[ExtensionAttribute]
public ref class LabelExtensions abstract sealed

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: