08 2013 档案
摘要:定义异常捕获类:[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public class ExceptionAttribute : FilterAttribute, IExceptionFilter { public virtual void OnException(ExceptionContext filterContext) { string message = s...
阅读全文