DefaultControllerFactory 构造函数

定义

初始化 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))

参数

controllerActivator
IControllerActivator

IControllerActivator 用于创建控制器实例。

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

用于初始化控制器属性的 Microsoft.AspNetCore.Mvc.Internal.IControllerPropertyActivator 一组实例。

适用于