“Catch”不能出现在“Try”语句之外

更新:2007 年 11 月

Catch 必须出现在 Try...Catch...Finally 语句块内。可能 Try 块中有多余的 Catch 语句,或者 Catch 语句出现在相应的 Try 块界外。

**错误 ID:**BC30380

更正此错误

  • 如果 Catch 语句是多余的,则删除它;或将其放在 Try...Catch...Finally 语句块内。

请参见

概念

Visual Basic 的结构化异常处理概述

参考

Try...Catch...Finally 语句 (Visual Basic)