Class MemoryLocalizationProvider
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A memory based implementation of a LocalizationProvider.
Namespace: EPiServer.Framework.Localization.Internal
Assembly: EPiServer.Framework.dll
Version: 10.10.4Syntax
public class MemoryLocalizationProvider : LocalizationProviderConstructors
MemoryLocalizationProvider()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the MemoryLocalizationProvider class.
Declaration
public MemoryLocalizationProvider()MemoryLocalizationProvider(ResourceKeyHandler)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the MemoryLocalizationProvider class.
Declaration
public MemoryLocalizationProvider(ResourceKeyHandler keyHandler)Parameters
| Type | Name | Description | 
|---|---|---|
| ResourceKeyHandler | keyHandler | The handler used to manipulate resource keys. | 
Properties
AvailableLanguages
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets all available languages. An available language does not need to contain any translations.
Declaration
public override IEnumerable<CultureInfo> AvailableLanguages { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo> | 
Overrides
Methods
AddString(CultureInfo, String, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Adds a string to the MemoryLocalizationProvider dictionary.
Declaration
public void AddString(CultureInfo culture, string resourceKey, string value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Globalization.CultureInfo | culture | The culture that the string should be associated with. | 
| System.String | resourceKey | The key that the string should be associated with. | 
| System.String | value | The string value. | 
ClearStrings()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Removes all strings from the MemoryLocalizationProvider dictionary.
Declaration
public void ClearStrings()ClearStrings(CultureInfo)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Removes all strings from the MemoryLocalizationProvider dictionary for a specific culture.
Declaration
public void ClearStrings(CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Globalization.CultureInfo | culture | The culture to clear all strings from. | 
GetAllStrings(String, String[], CultureInfo)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets all localized strings for the specified culture below the specified key.
Declaration
public override IEnumerable<ResourceItem> GetAllStrings(string originalKey, string[] normalizedKey, CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | originalKey | The original key that was passed into any GetString method. | 
| System.String[] | normalizedKey | The  | 
| System.Globalization.CultureInfo | culture | The requested culture for the localized strings. | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ResourceItem> | All localized strings below the specified key. | 
Overrides
See Also
GetString(String, String[], CultureInfo)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the localized string for the specified key in the specified culture.
Declaration
public override string GetString(string originalKey, string[] normalizedKey, CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | originalKey | The original key that was passed into any GetString method. | 
| System.String[] | normalizedKey | The  | 
| System.Globalization.CultureInfo | culture | The requested culture for the localized string. | 
Returns
| Type | Description | 
|---|---|
| System.String | A localized string or  | 
Overrides
See Also
RemoveString(CultureInfo, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Removes a string from the MemoryLocalizationProvider dictionary.
Declaration
public void RemoveString(CultureInfo culture, string resourceKey)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Globalization.CultureInfo | culture | The culture that the string is associated with. | 
| System.String | resourceKey | The key that the string is associated with. | 
