共用方式為


ViewLocalizer 建構函式

定義

多載

ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)

建立新的 ViewLocalizer

ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)

建立新的 ViewLocalizer

ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)

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

參數

適用於

ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)

來源:
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)

參數

適用於