ViewLocalizer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment) |
创建一个新的 ViewLocalizer。 |
ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment) |
创建一个新的 ViewLocalizer。 |
ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)
- Source:
- ViewLocalizer.cs
- Source:
- ViewLocalizer.cs
创建一个新的 ViewLocalizer。
public:
ViewLocalizer(Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizerFactory ^ localizerFactory, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment);
public ViewLocalizer (Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory localizerFactory, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment);
new Microsoft.AspNetCore.Mvc.Localization.ViewLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory * Microsoft.AspNetCore.Hosting.IHostingEnvironment -> Microsoft.AspNetCore.Mvc.Localization.ViewLocalizer
Public Sub New (localizerFactory As IHtmlLocalizerFactory, hostingEnvironment As IHostingEnvironment)
参数
- localizerFactory
- IHtmlLocalizerFactory
- hostingEnvironment
- IHostingEnvironment
适用于
ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)
- Source:
- ViewLocalizer.cs
创建一个新的 ViewLocalizer。
public:
ViewLocalizer(Microsoft::AspNetCore::Mvc::Localization::IHtmlLocalizerFactory ^ localizerFactory, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnvironment);
public ViewLocalizer (Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory localizerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment);
new Microsoft.AspNetCore.Mvc.Localization.ViewLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory * Microsoft.AspNetCore.Hosting.IWebHostEnvironment -> Microsoft.AspNetCore.Mvc.Localization.ViewLocalizer
Public Sub New (localizerFactory As IHtmlLocalizerFactory, hostingEnvironment As IWebHostEnvironment)
参数
- localizerFactory
- IHtmlLocalizerFactory
- hostingEnvironment
- IWebHostEnvironment