'Throw' statements are not valid in the Immediate window

Throw statements can only be used in source code.

Error ID: BC30725

To correct this error

  • Remove Throw statements from debugging code.

See Also

Reference

Throw Statement (Visual Basic)

Other Resources

Debugging in Visual Studio