HtmlLocalizerExtensions.GetHtml 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
- name
- String
要使用的密钥。
返回
适用于
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
- name
- String
要使用的密钥。
- arguments
- Object[]
用于设置字符串格式的值。