共用方式為


HtmlLocalizerExtensions.GetHtml 方法

定義

多載

GetHtml(IHtmlLocalizer, String)

LocalizedHtmlString取得特定名稱的資源。

GetHtml(IHtmlLocalizer, String, Object[])

LocalizedHtmlString取得特定名稱的資源。

GetHtml(IHtmlLocalizer, String)

來源:
HtmlLocalizerExtensions.cs
來源:
HtmlLocalizerExtensions.cs
來源:
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[])

來源:
HtmlLocalizerExtensions.cs
來源:
HtmlLocalizerExtensions.cs
來源:
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

適用於