ResourceManagerStringLocalizer.GetAllStrings 方法

定义

重载

名称 说明
GetAllStrings(Boolean)

获取所有资源字符串。

GetAllStrings(Boolean, CultureInfo)

返回指定区域性中的所有字符串。

GetAllStrings(Boolean)

Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs

获取所有资源字符串。

public:
 virtual System::Collections::Generic::IEnumerable<Microsoft::Extensions::Localization::LocalizedString ^> ^ GetAllStrings(bool includeParentCultures);
public virtual System.Collections.Generic.IEnumerable<Microsoft.Extensions.Localization.LocalizedString> GetAllStrings(bool includeParentCultures);
abstract member GetAllStrings : bool -> seq<Microsoft.Extensions.Localization.LocalizedString>
override this.GetAllStrings : bool -> seq<Microsoft.Extensions.Localization.LocalizedString>
Public Overridable Function GetAllStrings (includeParentCultures As Boolean) As IEnumerable(Of LocalizedString)

参数

includeParentCultures
Boolean

true 包含来自父区域性的字符串; false 否则。

返回

包含所有资源字符串的枚举。

实现

适用于

GetAllStrings(Boolean, CultureInfo)

Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs

返回指定区域性中的所有字符串。

protected:
 System::Collections::Generic::IEnumerable<Microsoft::Extensions::Localization::LocalizedString ^> ^ GetAllStrings(bool includeParentCultures, System::Globalization::CultureInfo ^ culture);
protected System.Collections.Generic.IEnumerable<Microsoft.Extensions.Localization.LocalizedString> GetAllStrings(bool includeParentCultures, System.Globalization.CultureInfo culture);
member this.GetAllStrings : bool * System.Globalization.CultureInfo -> seq<Microsoft.Extensions.Localization.LocalizedString>
Protected Iterator Function GetAllStrings (includeParentCultures As Boolean, culture As CultureInfo) As IEnumerable(Of LocalizedString)

参数

includeParentCultures
Boolean

是否在搜索资源时包括父区域性。

culture
CultureInfo

CultureInfo 获取其字符串的字符串。

返回

字符串。

适用于