HtmlHelperLabelExtensions.Label HtmlHelperLabelExtensions.Label HtmlHelperLabelExtensions.Label Method

Definition

Overloads

Label(IHtmlHelper, String) Label(IHtmlHelper, String) Label(IHtmlHelper, String)

Returns a <label> element for the specified expression.

Label(IHtmlHelper, String, String) Label(IHtmlHelper, String, String) Label(IHtmlHelper, String, String)

Returns a <label> element for the specified expression.

Label(IHtmlHelper, String) Label(IHtmlHelper, String) Label(IHtmlHelper, String)

Returns a <label> element for the specified expression.

public static Microsoft.AspNetCore.Html.IHtmlContent Label (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression);
static member Label : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function Label (htmlHelper As IHtmlHelper, expression As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

expression
String String String

Expression name, relative to the current model.

Returns

A new IHtmlContent containing the <label> element.

Label(IHtmlHelper, String, String) Label(IHtmlHelper, String, String) Label(IHtmlHelper, String, String)

Returns a <label> element for the specified expression.

public static Microsoft.AspNetCore.Html.IHtmlContent Label (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string labelText);
static member Label : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function Label (htmlHelper As IHtmlHelper, expression As String, labelText As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

expression
String String String

Expression name, relative to the current model.

labelText
String String String

The inner text of the element.

Returns

A new IHtmlContent containing the <label> element.

Applies to