共用方式為


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)

參數

傳回

用來啟動控制器的委派。

適用於