ResourceManagerStringLocalizer Clase
Definición
Un objeto IStringLocalizer que usa ResourceManager y ResourceReader para proporcionar cadenas localizadas.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
- Herencia
-
ResourceManagerStringLocalizer
- Derivado
- Implementaciones
Comentarios
Este tipo es seguro para subprocesos.This type is thread-safe.
Constructores
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
| Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual.Determines whether the specified object is equal to the current object. (Heredado de Object) |
| GetAllStrings(Boolean) |
Obtiene todas las cadenas de recursos.Gets all the resource strings. |
| GetAllStrings(Boolean, CultureInfo) |
Devuelve todas las cadenas de la referencia cultural especificada.Returns all strings in the specified culture. |
| GetHashCode() |
Sirve como la función hash predeterminada.Serves as the default hash function. (Heredado de Object) |
| GetStringSafely(String, CultureInfo) |
Obtiene una cadena de recursos del administrador de recursos y devuelve |
| GetType() |
Obtiene el Type de la instancia actual.Gets the Type of the current instance. (Heredado de Object) |
| MemberwiseClone() |
Crea una copia superficial del Object actual.Creates a shallow copy of the current Object. (Heredado de Object) |
| ToString() |
Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object. (Heredado de Object) |
| WithCulture(CultureInfo) |
Obsoleto.
Crea una instancia de ResourceManagerStringLocalizer para un objeto CultureInfo específico.Creates a new ResourceManagerStringLocalizer 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. |