IStringLocalizer<T> Interface
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Représente un IStringLocalizer qui fournit des chaînes pour 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
Paramètres de type
- T
Type pour lequel fournir des chaînes.
- Dérivé
- Implémente
Propriétés
Item[String, Object[]] |
Obtient la ressource de chaîne portant le nom donné et mise en forme avec les arguments fournis. (Hérité de IStringLocalizer) |
Item[String] |
Obtient la ressource de chaîne portant le nom indiqué. (Hérité de IStringLocalizer) |
Méthodes
GetAllStrings(Boolean) |
Obtient les ressources de chaîne. (Hérité de IStringLocalizer) |
WithCulture(CultureInfo) |
Obsolète.
Crée un IStringLocalizer pour une CultureInfo spécifique. (Hérité de IStringLocalizer) |
Méthodes d’extension
GetAllStrings(IStringLocalizer) |
Obtient toutes les ressources de chaîne, y compris celles des cultures parentes. |
GetString(IStringLocalizer, String) |
Obtient la ressource de chaîne portant le nom indiqué. |
GetString(IStringLocalizer, String, Object[]) |
Obtient la ressource de chaîne portant le nom donné et mise en forme avec les arguments fournis. |
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour