ResourceManagerStringLocalizer Sınıf
Tanım
IStringLocalizer ResourceManager ResourceReader Yerelleştirilmiş dizeler sağlamak için ve kullanır.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
- Devralma
-
ResourceManagerStringLocalizer
- Türetilmiş
- Uygulamalar
Açıklamalar
Bu tür iş parçacığı güvenlidir.This type is thread-safe.
Oluşturucular
Ö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
| Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
| GetAllStrings(Boolean) |
Tüm kaynak dizelerini alır.Gets all the resource strings. |
| GetAllStrings(Boolean, CultureInfo) |
Belirtilen kültürdeki tüm dizeleri döndürür.Returns all strings in the specified culture. |
| GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
| GetStringSafely(String, CultureInfo) |
Resource Manager 'dan bir kaynak dizesi alır ve |
| GetType() |
TypeGeçerli örneği alır.Gets the Type of the current instance. (Devralındığı yer: Object) |
| MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
| ToString() |
Geçerli nesneyi temsil eden dizeyi döndürür.Returns a string that represents the current object. (Devralındığı yer: Object) |
| WithCulture(CultureInfo) |
Kullanımdan kalktı.
Belirli bir için yeni bir oluşturur ResourceManagerStringLocalizer CultureInfo .Creates a new ResourceManagerStringLocalizer 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. |