HtmlLocalizerExtensions.GetHtml Method

Definition

Overloads

GetHtml(IHtmlLocalizer, String)

Gets the LocalizedHtmlString resource for a specific name.

GetHtml(IHtmlLocalizer, String, Object[])

Gets the LocalizedHtmlString resource for a specific name.

GetHtml(IHtmlLocalizer, String)

Source:
HtmlLocalizerExtensions.cs
Source:
HtmlLocalizerExtensions.cs

Gets the LocalizedHtmlString resource for a specific name.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ GetHtml(Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizer ^ htmlLocalizer, System::String ^ name);
public static Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString GetHtml (this Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer htmlLocalizer, string name);
static member GetHtml : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer * string -> Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString
<Extension()>
Public Function GetHtml (htmlLocalizer As IHtmlLocalizer, name As String) As LocalizedHtmlString

Parameters

htmlLocalizer
IHtmlLocalizer

The IHtmlLocalizer.

name
String

The key to use.

Returns

The LocalizedHtmlString resource.

Applies to

GetHtml(IHtmlLocalizer, String, Object[])

Source:
HtmlLocalizerExtensions.cs
Source:
HtmlLocalizerExtensions.cs

Gets the LocalizedHtmlString resource for a specific name.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::Localization::LocalizedHtmlString ^ GetHtml(Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizer ^ htmlLocalizer, System::String ^ name, ... cli::array <System::Object ^> ^ arguments);
public static Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString GetHtml (this Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer htmlLocalizer, string name, params object[] arguments);
static member GetHtml : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer * string * obj[] -> Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString
<Extension()>
Public Function GetHtml (htmlLocalizer As IHtmlLocalizer, name As String, ParamArray arguments As Object()) As LocalizedHtmlString

Parameters

htmlLocalizer
IHtmlLocalizer

The IHtmlLocalizer.

name
String

The key to use.

arguments
Object[]

The values to format the string with.

Returns

The LocalizedHtmlString resource.

Applies to