語言

ResourceManagerStringLocalizer.GetAllStrings 方法

定義

多載

名稱 Description
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要買弦。

傳回

弦樂。

適用於