HtmlLocalizerExtensions.GetHtml 方法

定义

重载

GetHtml(IHtmlLocalizer, String)

LocalizedHtmlString获取特定名称的资源。

GetHtml(IHtmlLocalizer, String, Object[])

LocalizedHtmlString获取特定名称的资源。

GetHtml(IHtmlLocalizer, String)

Source:
HtmlLocalizerExtensions.cs
Source:
HtmlLocalizerExtensions.cs
Source:
HtmlLocalizerExtensions.cs

LocalizedHtmlString获取特定名称的资源。

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

参数

htmlLocalizer
IHtmlLocalizer

IHtmlLocalizer

name
String

要使用的密钥。

返回

LocalizedHtmlString 资源。

适用于

GetHtml(IHtmlLocalizer, String, Object[])

Source:
HtmlLocalizerExtensions.cs
Source:
HtmlLocalizerExtensions.cs
Source:
HtmlLocalizerExtensions.cs

LocalizedHtmlString获取特定名称的资源。

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

参数

htmlLocalizer
IHtmlLocalizer

IHtmlLocalizer

name
String

要使用的密钥。

arguments
Object[]

用于设置字符串格式的值。

返回

LocalizedHtmlString 资源。

适用于