IStringLocalizer Interfaz

Definición

Representa un servicio que proporciona cadenas localizadas.Represents a service that provides localized strings.

public interface class IStringLocalizer
public interface IStringLocalizer
type IStringLocalizer = interface
Public Interface IStringLocalizer
Derivado

Propiedades

Item[String, Object[]]

Obtiene el recurso de cadena con el nombre especificado y con el formato mediante los argumentos proporcionados.Gets the string resource with the given name and formatted with the supplied arguments.

Item[String]

Obtiene el recurso de cadena con el nombre especificado.Gets the string resource with the given name.

Métodos

GetAllStrings(Boolean)

Obtiene todos los recursos de cadena.Gets all string resources.

WithCulture(CultureInfo)
Obsoleto.

Crea una instancia de IStringLocalizer para un objeto CultureInfo específico.Creates a new IStringLocalizer for a specific CultureInfo.

Métodos de extensión

GetAllStrings(IStringLocalizer)

Obtiene todos los recursos de cadena incluidos los de las referencias culturales primarias.Gets all string resources including those for parent cultures.

GetString(IStringLocalizer, String)

Obtiene el recurso de cadena con el nombre especificado.Gets the string resource with the given name.

GetString(IStringLocalizer, String, Object[])

Obtiene el recurso de cadena con el nombre especificado y con el formato mediante los argumentos proporcionados.Gets the string resource with the given name and formatted with the supplied arguments.

Se aplica a