IStringLocalizer Rozhraní

Definice

Představuje službu, která poskytuje lokalizované řetězce.Represents a service that provides localized strings.

public interface class IStringLocalizer
public interface IStringLocalizer
type IStringLocalizer = interface
Public Interface IStringLocalizer
Odvozené

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

GetAllStrings(Boolean)

Načte všechny řetězcové prostředky.Gets all string resources.

WithCulture(CultureInfo)
Zastaralé.

Vytvoří nový IStringLocalizer pro konkrétní CultureInfo .Creates a new IStringLocalizer 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.

Platí pro