Prior to C# 6, you'd have to catch the exception and rethrow it if didn't have the right status: try { ... 1 } catch (WebException e) { if (e.Status !=
確定! 回上一頁