GenericLocalizeTagHelper.

GetContentAsync(TagHelperContext, TagHelperOutput) Method

Summary

Gets the content/text that are to be localized.

Syntax

protected virtual Task<string> GetContentAsync(TagHelperContext context, TagHelperOutput output)

Parameters

Name Type Description
context TagHelperContext Contains information associated with the current HTML tag.
output TagHelperOutput A stateful HTML element used to generate an HTML tag.

Return Value

Type Description
Task<string> An asynchronous task with the found content.