0

I wonder how the try, catch, finally function works.
I know how try and catch works.

What I wonder is if the try block is successful then I know that the catch block doesn´t execute.

Is it true that the finally block doesn´t execute either ?

try
{
}
     catch(Exception^ ex)
     {
     }
 finally
 {
      ServicePointManager::ServerCertificateValidationCallback = orgCallback; 
 }
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Lukezzz
1

>Is it true that the finally block doesn´t execute either ?
The finally block always executes, whether an exception was thrown or not.

0

Okay, thank you !

>Is it true that the finally block doesn´t execute either ?
The finally block always executes, whether an exception was thrown or not.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.