TagHelperContext TagHelperContext TagHelperContext Class

Definition

Contains information related to the execution of ITagHelpers.

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

Constructors

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

Instantiates a new TagHelperContext.

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

Instantiates a new TagHelperContext.

Properties

AllAttributes AllAttributes AllAttributes

Every attribute associated with the current HTML element.

Items Items Items

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

TagName TagName TagName

The parsed HTML tag name of the element.

UniqueId UniqueId UniqueId

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

Methods

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

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

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

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

Applies to