Share via


ResourceManagerStringLocalizer.GetAllStrings 方法

定義

多載

GetAllStrings(Boolean)

取得所有資源字串。

GetAllStrings(Boolean, CultureInfo)

傳回指定文化特性中的所有字串。

GetAllStrings(Boolean)

來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
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)

來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
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

傳回

字串。

適用於