Share via


ITagHelper Interface

Definition

Contract used to filter matching HTML elements. Marker interface for TagHelpers.

public interface class ITagHelper
public interface class ITagHelper : Microsoft::AspNetCore::Razor::TagHelpers::ITagHelperComponent
public interface ITagHelper
public interface ITagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelperComponent
type ITagHelper = interface
type ITagHelper = interface
    interface ITagHelperComponent
Public Interface ITagHelper
Public Interface ITagHelper
Implements ITagHelperComponent
Derived
Implements

Properties

Order

When a set ofITagHelper s are executed, theirInit(TagHelperContext)'s are first invoked in the specified Order; then their ProcessAsync(TagHelperContext, TagHelperOutput)'s are invoked in the specified Order. Lower values are executed first.

Methods

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.

ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the ITagHelper with the given context and output.

Applies to