Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using/End using and Try/Catch
Message
De
31/05/2012 03:26:19
 
 
À
30/05/2012 20:32:59
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01544881
Message ID:
01544898
Vues:
59
This message has been marked as the solution to the initial question of the thread.
>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
Fil
Voir

Click here to load this message in the networking platform