ResourceManagerStringLocalizer Třída
Definice
Objekt IStringLocalizer , který používá ResourceManager a ResourceReader k poskytnutí lokalizovaných řetězců.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
- Dědičnost
-
ResourceManagerStringLocalizer
- Odvozené
- Implementuje
Poznámky
Tento typ je bezpečný pro přístup z více vláken.This type is thread-safe.
Konstruktory
Vlastnosti
| Item[String, Object[]] |
Získá prostředek řetězce se zadaným názvem a naformátuje zadanými argumenty.Gets the string resource with the given name and formatted with the supplied arguments. |
| Item[String] |
Získá prostředek řetězce s daným názvem.Gets the string resource with the given name. |
Metody
| Equals(Object) |
Určí, zda se zadaný objekt rovná aktuálnímu objektu.Determines whether the specified object is equal to the current object. (Zděděno od Object) |
| GetAllStrings(Boolean) |
Načte všechny řetězce prostředků.Gets all the resource strings. |
| GetAllStrings(Boolean, CultureInfo) |
Vrátí všechny řetězce v zadané jazykové verzi.Returns all strings in the specified culture. |
| GetHashCode() |
Slouží jako výchozí funkce hash.Serves as the default hash function. (Zděděno od Object) |
| GetStringSafely(String, CultureInfo) |
Získá řetězec prostředku ze Správce prostředků a vrátí |
| GetType() |
Získá Type aktuální instanci.Gets the Type of the current instance. (Zděděno od Object) |
| MemberwiseClone() |
Vytvoří kopii aktuálního seznamu Object .Creates a shallow copy of the current Object. (Zděděno od Object) |
| ToString() |
Vrátí řetězec, který představuje aktuální objekt.Returns a string that represents the current object. (Zděděno od Object) |
| WithCulture(CultureInfo) |
Zastaralé.
Vytvoří nový ResourceManagerStringLocalizer pro konkrétní CultureInfo .Creates a new ResourceManagerStringLocalizer for a specific CultureInfo. |
Metody rozšíření
| GetAllStrings(IStringLocalizer) |
Načte všechny řetězcové prostředky včetně těch pro nadřazené kultury.Gets all string resources including those for parent cultures. |
| GetString(IStringLocalizer, String) |
Získá prostředek řetězce s daným názvem.Gets the string resource with the given name. |
| GetString(IStringLocalizer, String, Object[]) |
Získá prostředek řetězce se zadaným názvem a naformátuje zadanými argumenty.Gets the string resource with the given name and formatted with the supplied arguments. |