DictionaryHtml(string, CultureInfo, string)

Returns the dictionary value for a specific key and culture as a .

public async ValueTask<HtmlString> DictionaryHtml(string key, CultureInfo culture, string defaultValue)
Returns:
ValueTask<HtmlString>

Parameters

key string

The dictionary key to retrieve.

culture CultureInfo
defaultValue string

The default (html) value to return if the dictionary key was not found.

DictionaryHtml(string, string)

Returns the dictionary value for a specific key and the current UI culture as a .

public async ValueTask<HtmlString> DictionaryHtml(string key, string defaultValue)
Returns:
ValueTask<HtmlString>

Parameters

key string

The dictionary key to retrieve.

defaultValue string

The default (html) value to return if the dictionary key was not found.

In this article