RSS

导航

信息

联系方式(Contact)






 
基类:ControllerContext
public class ActionExecutedContext : ControllerContext
{
    // Fields
    private ActionResult _result;

    // Methods
    public ActionExecutedContext(ControllerContext controllerContext, MethodInfo actionMethod, bool canceled, Exception exception);

    // Properties
    public MethodInfo ActionMethod { get; private set; }
    public bool Canceled { get; private set; }
    public Exception Exception { get; private set; }
    public bool ExceptionHandled { get; set; }
    public ActionResult Result { get; set; }
}
按属性将异常、Action等进行实例化 用于在Filter中的后置事件传递参数

	public class TestFilter : ActionFilterAttribute{
		public override void OnActionExecuting(ActionExecutingContext
		   filterContext) {
			//filterContext.HttpContext.Session"temp" += "OnActionExecuting
"; } public override void OnActionExecuted(ActionExecutedContext filterContext) { //filterContext.HttpContext.Session"temp" += "OnActionExecuted
"; } }
Eice.com.cn 2008 黑ICP备09002611号 | 关于我们 | 技术支持 |