HtmlLocalizer(IStringLocalizer) 构造函数

定义

创建一个新的 HtmlLocalizer

public:
 HtmlLocalizer(Microsoft::Extensions::Localization::IStringLocalizer ^ localizer);
public HtmlLocalizer (Microsoft.Extensions.Localization.IStringLocalizer localizer);
new Microsoft.AspNetCore.Mvc.Localization.HtmlLocalizer : Microsoft.Extensions.Localization.IStringLocalizer -> Microsoft.AspNetCore.Mvc.Localization.HtmlLocalizer
Public Sub New (localizer As IStringLocalizer)

参数

localizer
IStringLocalizer

要从中读取字符串的 IStringLocalizer

适用于