Controller.OnActionExecutionAsync 方法

定义

在调用操作方法前调用。

public:
 virtual System::Threading::Tasks::Task ^ OnActionExecutionAsync(Microsoft::AspNetCore::Mvc::Filters::ActionExecutingContext ^ context, Microsoft::AspNetCore::Mvc::Filters::ActionExecutionDelegate ^ next);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Threading.Tasks.Task OnActionExecutionAsync (Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member OnActionExecutionAsync : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext * Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate -> System.Threading.Tasks.Task
override this.OnActionExecutionAsync : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext * Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate -> System.Threading.Tasks.Task
Public Overridable Function OnActionExecutionAsync (context As ActionExecutingContext, next As ActionExecutionDelegate) As Task

参数

context
ActionExecutingContext

执行上下文的操作。

next
ActionExecutionDelegate

ActionExecutionDelegate要执行的 。 在 的正文 OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate) 中调用此委托以继续执行操作。

返回

一个 Task 实例。

实现

属性

适用于