Share via


ComponentTagHelper Class

Definition

A TagHelper that renders a Razor component.

public ref class ComponentTagHelper sealed : Microsoft::AspNetCore::Razor::TagHelpers::TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("component", Attributes="type", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
public sealed class ComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("component", Attributes="type", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
type ComponentTagHelper = class
    inherit TagHelper
Public NotInheritable Class ComponentTagHelper
Inherits TagHelper
Inheritance
ComponentTagHelper
Attributes

Constructors

ComponentTagHelper()

Properties

ComponentType

Gets or sets the component type. This value is required.

Order

When a set of ITagHelpers are executed, their Init(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.

(Inherited from TagHelper)
Parameters

Gets or sets values for component parameters.

RenderMode

Gets or sets the RenderMode

ViewContext

Gets or sets the ViewContext for the current request.

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.

(Inherited from TagHelper)
Process(TagHelperContext, TagHelperOutput)

Synchronously executes the TagHelper with the given context and output.

(Inherited from TagHelper)
ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

Applies to