HtmlLocalizerExtensions.GetHtml 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetHtml(IHtmlLocalizer, String) |
LocalizedHtmlString取得特定名稱的資源。 |
GetHtml(IHtmlLocalizer, String, Object[]) |
LocalizedHtmlString取得特定名稱的資源。 |
GetHtml(IHtmlLocalizer, String)
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
- name
- String
要使用的金鑰。
傳回
資源 LocalizedHtmlString 。
適用於
GetHtml(IHtmlLocalizer, String, Object[])
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
- name
- String
要使用的金鑰。
- arguments
- Object[]
要用來格式化字串的值。
傳回
資源 LocalizedHtmlString 。