Renders a dictionary value for the specified dictionary key.

[HtmlTargetElement]
[HtmlTargetElement]
public class DictionaryTagHelper
Inheritance:
ObjectTagHelperDictionaryTagHelper

Constructors

DictionaryTagHelper(IDictionaryService) Default constructor. Services are injected by the IoC container.

Properties

Key Specifies a key for a dictionary entry. If found, the content of the element will be set to dictionary value for the current request culture. Optionally, a different culture may be set with the rx-culture attribute.
TagDictionaryKey Specifies a key for a dictionary entry. If found, the content of the element will be set to dictionary value for the current request culture. Optionally, a different culture may be set with the rx-culture attribute.
CultureName Renders the dictionary value for the specified culture. If empty or not specified, the current request culture is used.

Methods

ProcessAsync(TagHelperContext, TagHelperOutput)