Dela via


ViewLocalizer Constructors

Definition

Overloads

ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)

Creates a new ViewLocalizer.

ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)

Creates a new ViewLocalizer.

ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)

Source:
ViewLocalizer.cs
Source:
ViewLocalizer.cs

Creates a new 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)

Parameters

hostingEnvironment
IHostingEnvironment

The IHostingEnvironment.

Applies to

ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)

Source:
ViewLocalizer.cs

Creates a new 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)

Parameters

hostingEnvironment
IWebHostEnvironment

The IWebHostEnvironment.

Applies to