Class LocalizationServiceResourceProvider
Implements a resource provider for the EPiServer.Framework.Localization.LocalizationServiceResourceProvider.LocalizationService system used in EPiServer.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Framework.Localization
Assembly: EPiServer.Framework.dll
Version: 7.19.2Syntax
public class LocalizationServiceResourceProvider : IResourceProvider
Constructors
LocalizationServiceResourceProvider(String)
Initializes a new instance of the LocalizationServiceResourceProvider class.
Declaration
public LocalizationServiceResourceProvider(string classKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | classKey | The class key |
LocalizationServiceResourceProvider(String, LocalizationService)
Initializes a new instance of the LocalizationServiceResourceProvider class.
Declaration
public LocalizationServiceResourceProvider(string classKey, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
System.String | classKey | The class key. |
LocalizationService | localizationService | The localization service to use. |
Properties
ResourceReader
Gets an object to read resource values from a source. Not supported.
Declaration
public IResourceReader ResourceReader { get; }
Property Value
Type | Description |
---|---|
System.Resources.IResourceReader |
Methods
GetObject(String, CultureInfo)
Returns a resource object for the key and culture.
Declaration
public object GetObject(string resourceKey, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceKey | The key identifying a particular resource. |
System.Globalization.CultureInfo | culture | The culture identifying a localized value for the resource. |
Returns
Type | Description |
---|---|
System.Object | An Object that contains the resource value for the resourceKey and culture. |