Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2003 Server
>If I use a Using/End using block and inside I have a Try/Catch which could return False, will the Return False affect the End Using? In other word, will the End Using always be done if I exit this block before it reaches the End Using?
Remember that a Using block is compiled as a try/catch/finally block - so the outer finally will always execute (and Dispose() will be called) even when an exception occurs in an inner try/catch.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement