共用方式為


Controller.OnActionExecuting(ActionExecutingContext) 方法

定義

在叫用動作方法之前呼叫。

public:
 virtual void OnActionExecuting(Microsoft::AspNetCore::Mvc::Filters::ActionExecutingContext ^ context);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual void OnActionExecuting (Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member OnActionExecuting : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext -> unit
override this.OnActionExecuting : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext -> unit
Public Overridable Sub OnActionExecuting (context As ActionExecutingContext)

參數

context
ActionExecutingContext

執行內容的動作。

實作

屬性

適用於