ITagHelperComponent.Init(TagHelperContext) Method
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.
Initializes the ITagHelperComponent with the given context
. Additions to
Items should be done within this method to ensure they're added prior to
executing the children.
public:
void Init(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContext ^ context);
public void Init (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context);
abstract member Init : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext -> unit
Public Sub Init (context As TagHelperContext)
Parameters
- context
- TagHelperContext
Contains information associated with the current HTML tag.
Remarks
When more than one ITagHelperComponent runs on the same element, TagHelperOutput.GetChildContentAsync may be invoked prior to ProcessAsync(TagHelperContext, TagHelperOutput).