Microsoft.AspNetCore.Razor.TagHelpers Namespace

Contains types for creating TagHelper implementations.

Classes

DefaultTagHelperContent

Default concrete TagHelperContent.

HtmlAttributeNameAttribute

Used to override an ITagHelper property's HTML attribute name.

HtmlAttributeNotBoundAttribute

Indicates the associated ITagHelper property should not be bound to HTML attributes.

HtmlTargetElementAttribute

Provides an ITagHelper's target.

NullHtmlEncoder

A HtmlEncoder that does not encode. Should not be used when writing directly to a response expected to contain valid HTML.

OutputElementHintAttribute

Provides a hint of the ITagHelper's output element.

ReadOnlyTagHelperAttributeList

A read-only collection of TagHelperAttributes.

RestrictChildrenAttribute

Restricts children of the ITagHelper's element.

TagHelper

An abstract base class for ITagHelper.

TagHelperAttribute

An HTML tag helper attribute.

TagHelperAttributeList

A collection of TagHelperAttributes.

TagHelperComponent

An abstract base class for ITagHelperComponent.

TagHelperContent

Abstract class used to buffer content returned by ITagHelpers.

TagHelperContext

Contains information related to the execution of ITagHelpers.

TagHelperOutput

Class used to represent the output of an ITagHelper.

Interfaces

ITagHelper

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

ITagHelperComponent

Contract used to modify an HTML element.

Enums

HtmlAttributeValueStyle

Determines how an HTML attribute value appears in markup.

TagMode

The mode in which an element should render.

TagStructure

The structure the element should be written in.

Remarks

For more information about Tag Helpers, see Tag Helpers in ASP.NET Core.