Partager via


ViewLocalizer Constructeurs

Définition

Surcharges

ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)

Crée un ViewLocalizer.

ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)

Crée un ViewLocalizer.

ViewLocalizer(IHtmlLocalizerFactory, IHostingEnvironment)

Source:
ViewLocalizer.cs
Source:
ViewLocalizer.cs

Crée un 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)

Paramètres

localizerFactory
IHtmlLocalizerFactory

L’IHtmlLocalizerFactoryopérateur

hostingEnvironment
IHostingEnvironment

L’IHostingEnvironmentopérateur

S’applique à

ViewLocalizer(IHtmlLocalizerFactory, IWebHostEnvironment)

Source:
ViewLocalizer.cs

Crée un 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)

Paramètres

localizerFactory
IHtmlLocalizerFactory

L’IHtmlLocalizerFactoryopérateur

hostingEnvironment
IWebHostEnvironment

L’IWebHostEnvironmentopérateur

S’applique à