Share via


TagHelperContext Class

Definition

Contains information related to the execution of ITagHelpers.

public ref class TagHelperContext
public class TagHelperContext
type TagHelperContext = class
Public Class TagHelperContext
Inheritance
TagHelperContext

Constructors

TagHelperContext(String, TagHelperAttributeList, IDictionary<Object,Object>, String)

Instantiates a new TagHelperContext.

TagHelperContext(TagHelperAttributeList, IDictionary<Object,Object>, String)

Instantiates a new TagHelperContext.

Properties

AllAttributes

Every attribute associated with the current HTML element.

Items

Gets the collection of items used to communicate with other ITagHelpers.

TagName

The parsed HTML tag name of the element.

UniqueId

An identifier unique to the HTML element this context is for.

Methods

Reinitialize(IDictionary<Object,Object>, String)

Clears the TagHelperContext and updates its state with the provided values.

Reinitialize(String, IDictionary<Object,Object>, String)

Clears the TagHelperContext and updates its state with the provided values.

Applies to