共用方式為


IControllerFactoryProvider.CreateControllerFactory 方法

定義

建立處理站,以產生指定 descriptor 之 的控制器。

public:
 Func<Microsoft::AspNetCore::Mvc::ControllerContext ^, System::Object ^> ^ CreateControllerFactory(Microsoft::AspNetCore::Mvc::Controllers::ControllerActionDescriptor ^ descriptor);
public Func<Microsoft.AspNetCore.Mvc.ControllerContext,object> CreateControllerFactory (Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor);
abstract member CreateControllerFactory : Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.ControllerContext, obj>
Public Function CreateControllerFactory (descriptor As ControllerActionDescriptor) As Func(Of ControllerContext, Object)

參數

傳回

控制器 Factory。

適用於