HtmlLocalizer.Item[] Property  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Item[String] | Gets the string resource with the given name. | 
| Item[String, Object[]] | Gets the string resource with the given name and formatted with the supplied arguments. The arguments will be HTML encoded. | 
Item[String]
- Source:
- HtmlLocalizer.cs
- Source:
- HtmlLocalizer.cs
- Source:
- HtmlLocalizer.cs
Gets the string resource with the given name.
public:
 virtual property Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ default[System::String ^] { Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ get(System::String ^ name); };public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name] { get; }member this.Item(string) : Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlStringDefault Public Overridable ReadOnly Property Item(name As String) As LocalizedHtmlStringParameters
- name
- String
The name of the string resource.
Property Value
The string resource as a LocalizedHtmlString.
Implements
Applies to
Item[String, Object[]]
- Source:
- HtmlLocalizer.cs
- Source:
- HtmlLocalizer.cs
- Source:
- HtmlLocalizer.cs
Gets the string resource with the given name and formatted with the supplied arguments. The arguments will be HTML encoded.
public:
 virtual property Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ default[System::String ^, cli::array <System::Object ^> ^] { Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ get(System::String ^ name, ... cli::array <System::Object ^> ^ arguments); };public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get; }member this.Item(string * obj[]) : Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlStringDefault Public Overridable ReadOnly Property Item(name As String, ParamArray arguments As Object()) As LocalizedHtmlStringParameters
- name
- String
The name of the string resource.
- arguments
- Object[]
The values to format the string with.
Property Value
The formatted string resource as a LocalizedHtmlString.