How to identify the Actionfilter used in a Controller Action Method?

Posted by Fleents on Stack Overflow See other posts from Stack Overflow or by Fleents
Published on 2010-06-08T10:25:23Z Indexed on 2010/06/08 10:32 UTC
Read the original article Hit count: 182

Filed under:
|

OnActionExecuting triggers when an action is about to execute.

If my action has actionfilter


[myCustomActionFilter]
public ActionResult MyAction()
{
//implementation
}

Is it possible to determine (inside the OnActionExecuting event) that an action has myCustomActionFilter applied into it?

© Stack Overflow or respective owner

Related posts about mvc

Related posts about actionfilter