LabelTagHelper LabelTagHelper LabelTagHelper Class

Definition

ITagHelper implementation targeting <label> elements with an asp-for attribute.

[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("label", Attributes="asp-for")]
public class LabelTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
type LabelTagHelper = class
    inherit TagHelper
Public Class LabelTagHelper
Inherits TagHelper
Inheritance
LabelTagHelperLabelTagHelperLabelTagHelper
Attributes

Constructors

LabelTagHelper(IHtmlGenerator) LabelTagHelper(IHtmlGenerator) LabelTagHelper(IHtmlGenerator)

Creates a new LabelTagHelper.

Properties

For For For

An expression to be evaluated against the current model.

Generator Generator Generator
Order Order Order
ViewContext ViewContext ViewContext

Methods

Init(TagHelperContext) Init(TagHelperContext) Init(TagHelperContext)

Initializes the ITagHelper with the given context. Additions to Items should be done within this method to ensure they're added prior to executing the children.

(Inherited from TagHelper)
Process(TagHelperContext, TagHelperOutput) Process(TagHelperContext, TagHelperOutput) Process(TagHelperContext, TagHelperOutput)

Synchronously executes the TagHelper with the given context and output.

(Inherited from TagHelper)
ProcessAsync(TagHelperContext, TagHelperOutput) ProcessAsync(TagHelperContext, TagHelperOutput) ProcessAsync(TagHelperContext, TagHelperOutput)

Applies to