ResourceManagerStringLocalizer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IStringLocalizer that uses the ResourceManager and ResourceReader to provide localized strings.
public ref class ResourceManagerStringLocalizer : Microsoft::Extensions::Localization::IStringLocalizer
public class ResourceManagerStringLocalizer : Microsoft.Extensions.Localization.IStringLocalizer
type ResourceManagerStringLocalizer = class
interface IStringLocalizer
Public Class ResourceManagerStringLocalizer
Implements IStringLocalizer
- Inheritance
-
ResourceManagerStringLocalizer
- Implements
Remarks
This type is thread-safe.
Constructors
ResourceManagerStringLocalizer(ResourceManager, Assembly, String, IResourceNamesCache, ILogger) |
Creates a new ResourceManagerStringLocalizer. |
Properties
Item[String, Object[]] |
Gets the string resource with the given name and formatted with the supplied arguments. |
Item[String] |
Gets the string resource with the given name. |
Methods
GetAllStrings(Boolean, CultureInfo) |
Returns all strings in the specified culture. |
GetAllStrings(Boolean) |
Gets all the resource strings. |
GetStringSafely(String, CultureInfo) |
Gets a resource string from a ResourceManager and returns |
Extension Methods
GetAllStrings(IStringLocalizer) |
Gets all string resources including those for parent cultures. |
GetString(IStringLocalizer, String, Object[]) |
Gets the string resource with the given name and formatted with the supplied arguments. |
GetString(IStringLocalizer, String) |
Gets the string resource with the given name. |