ResourceManagerStringLocalizer.Item[] 属性

定义

重载

Item[String]

获取具有给定名称的字符串资源。

Item[String, Object[]]

获取具有给定名称并通过提供的参数进行格式设置的字符串资源。

Item[String]

Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
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[]]

Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
ResourceManagerStringLocalizer.cs
Source:
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 的格式化字符串资源。

实现

适用于