Share via


ResourceManagerStringLocalizer.Item[] 屬性

定義

多載

Item[String]

取得具有指定名稱的字串資源。

Item[String, Object[]]

取得具有指定名稱,並以提供的引數格式化的字串資源。

Item[String]

來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs

取得具有指定名稱的字串資源。

public:
 virtual property Microsoft::Extensions::Localization::LocalizedString ^ default[System::String ^] { Microsoft::Extensions::Localization::LocalizedString ^ get(System::String ^ name); };
public virtual Microsoft.Extensions.Localization.LocalizedString this[string name] { get; }
member this.Item(string) : Microsoft.Extensions.Localization.LocalizedString
Default Public Overridable ReadOnly Property Item(name As String) As LocalizedString

參數

name
String

字串資源的名稱。

屬性值

作為 LocalizedString 的字串資源。

實作

適用於

Item[String, Object[]]

來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs
來源:
ResourceManagerStringLocalizer.cs

取得具有指定名稱,並以提供的引數格式化的字串資源。

public:
 virtual property Microsoft::Extensions::Localization::LocalizedString ^ default[System::String ^, cli::array <System::Object ^> ^] { Microsoft::Extensions::Localization::LocalizedString ^ get(System::String ^ name, ... cli::array <System::Object ^> ^ arguments); };
public virtual Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get; }
member this.Item(string * obj[]) : Microsoft.Extensions.Localization.LocalizedString
Default Public Overridable ReadOnly Property Item(name As String, ParamArray arguments As Object()) As LocalizedString

參數

name
String

字串資源的名稱。

arguments
Object[]

要用來格式化字串的值。

屬性值

作為 LocalizedString 的格式化字串資源。

實作

適用於