The When keyword adds a conditional test to a Catch statement.
The When keyword is used in this context:
Try...Catch...Finally Statements
Visual Basic Language Keywords