Partager via


DefaultControllerFactory Constructeur

Définition

Initialise une nouvelle instance de DefaultControllerFactory.

public:
 DefaultControllerFactory(Microsoft::AspNetCore::Mvc::Controllers::IControllerActivator ^ controllerActivator, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Internal::IControllerPropertyActivator ^> ^ propertyActivators);
public DefaultControllerFactory (Microsoft.AspNetCore.Mvc.Controllers.IControllerActivator controllerActivator, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Internal.IControllerPropertyActivator> propertyActivators);
new Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory : Microsoft.AspNetCore.Mvc.Controllers.IControllerActivator * seq<Microsoft.AspNetCore.Mvc.Internal.IControllerPropertyActivator> -> Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory
Public Sub New (controllerActivator As IControllerActivator, propertyActivators As IEnumerable(Of IControllerPropertyActivator))

Paramètres

controllerActivator
IControllerActivator

IControllerActivator permet de créer des instances de contrôleur.

propertyActivators
IEnumerable<Microsoft.AspNetCore.Mvc.Internal.IControllerPropertyActivator>

Ensemble d’instances Microsoft.AspNetCore.Mvc.Internal.IControllerPropertyActivator utilisées pour initialiser les propriétés du contrôleur.

S’applique à