共用方式為


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 執行個體。

實作

屬性

適用於