Share via


HtmlLocalizer.Item[] Property

Definition

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.LocalizedHtmlString
Default Public Overridable ReadOnly Property Item(name As String) As LocalizedHtmlString

Parameters

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.LocalizedHtmlString
Default Public Overridable ReadOnly Property Item(name As String, ParamArray arguments As Object()) As LocalizedHtmlString

Parameters

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.

Implements

Applies to