IControllerActivatorProvider.CreateActivator 方法

定义

创建一个 Func<T,TResult> 用于创建控制器的 。

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

参数

返回

用于激活控制器的委托。

适用于