ASP.NET MVC ActionFilter
问题 Does anybody knows if the OnResultExecuted method from ActionFilterAttribute class is executed even in CATCH block? ie: [CookiesActions] public ActionResult Login(Usuarios usuario) [...] return View(new UsersViewModel(sceUsuarios.Usuario,true)); } catch { return View(new UsersViewModel(new Usuarios(),true));//is OnResultExecuted fired here? } [...] 回答1: In short: YES . You can verify this with a a simple logging action filter. public class LogAttribute : ActionFilterAttribute { public