TagHelperExecutionContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Class used to store information about a ITagHelper's execution lifetime.
public ref class TagHelperExecutionContext
public class TagHelperExecutionContext
type TagHelperExecutionContext = class
Public Class TagHelperExecutionContext
- Inheritance
-
TagHelperExecutionContext
Constructors
TagHelperExecutionContext(String, TagMode, IDictionary<Object,Object>, String, Func<Task>, Action<HtmlEncoder>, Func<TagHelperContent>) |
Instantiates a new TagHelperExecutionContext. |
Properties
ChildContentRetrieved |
Indicates if Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(System.Boolean,System.Text.Encodings.Web.HtmlEncoder) has been called. |
Context |
The ITagHelper's context. |
Items |
Gets the collection of items used to communicate with other ITagHelpers. |
Output |
The ITagHelper's output. |
TagHelpers |
ITagHelpers that should be run. |
Methods
Add(ITagHelper) |
Tracks the given |
AddHtmlAttribute(String, Object, HtmlAttributeValueStyle) |
Tracks the HTML attribute. |
AddHtmlAttribute(TagHelperAttribute) |
Tracks the HTML attribute. |
AddTagHelperAttribute(String, Object, HtmlAttributeValueStyle) |
Tracks the ITagHelper bound attribute. |
AddTagHelperAttribute(TagHelperAttribute) |
Tracks the ITagHelper bound attribute. |
Reinitialize(String, TagMode, IDictionary<Object,Object>, String, Func<Task>) |
Clears the TagHelperExecutionContext and updates its state with the provided values. |
SetOutputContentAsync() |
Executes children asynchronously with the page's HtmlEncoder in scope and sets Output's Content to the rendered results. |