VB.NET documentation bug with 'Throw'

I've notified Microsoft of a small bug in the VB.NET documentation.  For the 'Throw Statement', the documentation says the expression part of the statement is required:

Throw expression

However, this is not correct.  If you want to rethrow the current exception, simply use "Throw" by itself.  If you look at the C# throw documentation, it is correct:

"This is omitted when rethrowing the current exception object in a catch clause".

No Comments