标签: c# asp.net response.redirect try-finally
可能重复: Will code in finally run after a redirect?
您好,
当我将EndResponse设置为true / false的Response.Redirect()调用try / finally块时会发生什么?最终会被召唤吗?
答案 0 :(得分:4)
try / finally中的finally块将始终被调用 - 这就是finally的点。
finally
此处描述了例外(次要):Conditions when finally does not execute in a .net try..finally block