IStringLocalizer<T> Rozhraní

Definice

Představuje objekt IStringLocalizer , který poskytuje řetězce pro T .Represents an IStringLocalizer that provides strings for T.

generic <typename T>
public interface class IStringLocalizer : Microsoft::Extensions::Localization::IStringLocalizer
public interface IStringLocalizer<T> : Microsoft.Extensions.Localization.IStringLocalizer
public interface IStringLocalizer<out T> : Microsoft.Extensions.Localization.IStringLocalizer
type IStringLocalizer<'T> = interface
    interface IStringLocalizer
Public Interface IStringLocalizer(Of T)
Implements IStringLocalizer
Public Interface IStringLocalizer(Of Out T)
Implements IStringLocalizer

Parametry typu

T

TypeK poskytnutí řetězců pro.The Type to provide strings for.

Odvozené
Implementuje

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.

(Zděděno od IStringLocalizer)
Item[String]

Získá prostředek řetězce s daným názvem.Gets the string resource with the given name.

(Zděděno od IStringLocalizer)

Metody

GetAllStrings(Boolean)

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

(Zděděno od IStringLocalizer)
WithCulture(CultureInfo)
Zastaralé.

Vytvoří nový IStringLocalizer pro konkrétní CultureInfo .Creates a new IStringLocalizer for a specific CultureInfo.

(Zděděno od IStringLocalizer)

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