Class LocalizationServiceResourceProvider
Implements a resource provider for the EPiServer.Framework.Localization.LocalizationServiceResourceProvider.LocalizationService system used in EPiServer.
Inheritance
System.Object
LocalizationServiceResourceProvider
Implements
System.Web.Compilation.IResourceProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Localization
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
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. |
Implements
System.Web.Compilation.IResourceProvider