StringLocalizer<TResourceSource> Classe
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.
Fournit des chaînes pour TResourceSource.
generic <typename TResourceSource>
public ref class StringLocalizer : Microsoft::Extensions::Localization::IStringLocalizer<TResourceSource>
public class StringLocalizer<TResourceSource> : Microsoft.Extensions.Localization.IStringLocalizer<TResourceSource>
type StringLocalizer<'ResourceSource> = class
interface IStringLocalizer<'ResourceSource>
interface IStringLocalizer
Public Class StringLocalizer(Of TResourceSource)
Implements IStringLocalizer(Of TResourceSource)
Paramètres de type
- TResourceSource
Pour Type fournir des chaînes.
- Héritage
-
StringLocalizer<TResourceSource>
- Implémente
-
IStringLocalizer IStringLocalizer<TResourceSource>
Constructeurs
| Nom | Description |
|---|---|
| StringLocalizer<TResourceSource>(IStringLocalizerFactory) |
Crée un nouveau StringLocalizer<TResourceSource>. |
Propriétés
| Nom | Description |
|---|---|
| Item[String, Object[]] |
Obtient la ressource de chaîne avec le nom donné et mise en forme avec les arguments fournis. |
| Item[String] |
Obtient la ressource de chaîne avec le nom donné. |
Méthodes
| Nom | Description |
|---|---|
| GetAllStrings(Boolean) |
Obtient toutes les chaînes de ressources. |
Méthodes d’extension
| Nom | Description |
|---|---|
| GetAllStrings(IStringLocalizer) |
Obtient toutes les ressources de chaîne, y compris celles des cultures parentes. |
| GetString(IStringLocalizer, String, Object[]) |
Obtient la ressource de chaîne avec le nom donné et mise en forme avec les arguments fournis. |
| GetString(IStringLocalizer, String) |
Obtient la ressource de chaîne avec le nom donné. |