DictionaryString(string, CultureInfo, string)

Returns the dictionary value for a specific key and culture.

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

Parameters

key string

The dictionary key to retrieve.

culture CultureInfo

The culture to retrieve the dictionary value for.

defaultValue string

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

DictionaryString(string, string)

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

public ValueTask<string> DictionaryString(string key, string defaultValue)
Returns:
ValueTask<string>

Parameters

key string

The dictionary key to retrieve.

defaultValue string

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

In this article