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)

参数

返回

控制器工厂。

适用于