“Throw”语句在“Catch”语句外或“Finally”语句内不能省略操作数

更新:2007 年 11 月

Catch 语句外的 Throw 语句必须提供异常对象的名称。

**错误 ID:**BC30666

更正此错误

  1. 为从 System.Exception 派生得到的某个异常对象指定名称。

  2. 重新组织代码,使 Throw 语句位于 Catch 块中。

请参见

概念

Visual Basic 中的 Exception 类

参考

Throw 语句 (Visual Basic)

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

其他资源

Visual Basic 中的异常和错误处理