ViewLocalizer.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:
- ViewLocalizer.cs
- Source:
- ViewLocalizer.cs
- Source:
- ViewLocalizer.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 ^ key); };
public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string key] { get; }
member this.Item(string) : Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString
Default Public Overridable ReadOnly Property Item(key As String) As LocalizedHtmlString
Parameters
- key
- String
Property Value
The string resource as a LocalizedHtmlString.
Implements
Applies to
Item[String, Object[]]
- Source:
- ViewLocalizer.cs
- Source:
- ViewLocalizer.cs
- Source:
- ViewLocalizer.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 ^ key, ... cli::array <System::Object ^> ^ arguments); };
public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string key, params object[] arguments] { get; }
member this.Item(string * obj[]) : Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString
Default Public Overridable ReadOnly Property Item(key As String, ParamArray arguments As Object()) As LocalizedHtmlString
Parameters
- key
- String
- arguments
- Object[]
The values to format the string with.
Property Value
The formatted string resource as a LocalizedHtmlString.