ResourceManagerStringLocalizer.GetAllStrings 方法

定义

重载

GetAllStrings(Boolean)

获取所有资源字符串。Gets all the resource strings.

GetAllStrings(Boolean, CultureInfo)

返回指定区域性的所有字符串。Returns all strings in the specified culture.

GetAllStrings(Boolean)

获取所有资源字符串。Gets all the resource strings.

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;否则为 falsetrue to include strings from parent cultures; false otherwise.

返回

IEnumerable<LocalizedString>

包含所有资源字符串的枚举。An enumeration that contains all the resource strings.

实现

适用于

产品 已引入

GetAllStrings(Boolean, CultureInfo)

返回指定区域性的所有字符串。Returns all strings in the specified culture.

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)
Protected Function GetAllStrings (includeParentCultures As Boolean, culture As CultureInfo) As IEnumerable(Of LocalizedString)

参数

includeParentCultures
Boolean

是否在资源搜索中包含父级区域性。Whether to include parent cultures in the search for a resource.

culture
CultureInfo

要获取其字符串的 CultureInfoThe CultureInfo to get strings for.

返回

IEnumerable<LocalizedString>

字符串。The strings.

适用于

产品 已引入