IStringLocalizer Arabirim
Tanım
Yerelleştirilmiş dizeler sağlayan bir hizmeti temsil eder.Represents a service that provides localized strings.
public interface class IStringLocalizer
public interface IStringLocalizer
type IStringLocalizer = interface
Public Interface IStringLocalizer
- Türetilmiş
Özellikler
| Item[String, Object[]] |
Verilen ada sahip ve sağlanan bağımsız değişkenlerle biçimlendirilen dize kaynağını alır.Gets the string resource with the given name and formatted with the supplied arguments. |
| Item[String] |
Verilen ada sahip dize kaynağını alır.Gets the string resource with the given name. |
Yöntemler
| GetAllStrings(Boolean) |
Tüm dize kaynaklarını alır.Gets all string resources. |
| WithCulture(CultureInfo) |
Kullanımdan kalktı.
Belirli bir için yeni bir oluşturur IStringLocalizer CultureInfo .Creates a new IStringLocalizer for a specific CultureInfo. |
Uzantı Metotları
| GetAllStrings(IStringLocalizer) |
Üst kültürler dahil olmak üzere tüm dize kaynaklarını alır.Gets all string resources including those for parent cultures. |
| GetString(IStringLocalizer, String) |
Verilen ada sahip dize kaynağını alır.Gets the string resource with the given name. |
| GetString(IStringLocalizer, String, Object[]) |
Verilen ada sahip ve sağlanan bağımsız değişkenlerle biçimlendirilen dize kaynağını alır.Gets the string resource with the given name and formatted with the supplied arguments. |