Visual Basic Language Reference  

When

The When keyword adds a conditional test to a Catch statement.

The When keyword is used in this context:

Try...Catch...Finally Statements

See Also

Visual Basic Language Keywords