Share via


IHtmlLocalizer.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:
IHtmlLocalizer.cs

Gets the string resource with the given name.

public:
 property Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ default[System::String ^] { Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ get(System::String ^ name); };
public Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name] { get; }
member this.Item(string) : Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString
Default Public 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.

Applies to

Item[String, Object[]]

Source:
IHtmlLocalizer.cs

Gets the string resource with the given name and formatted with the supplied arguments. The arguments will be HTML encoded.

public:
 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 Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get; }
member this.Item(string * obj[]) : Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString
Default Public 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.

Applies to