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

返回

字符串。

适用于