共用方式為


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 實例。

適用於