In Visual Basic 6 there was the err.number
command where the error code occurred.
I have a C # application that treats exception for the message description because I can not find the command that returns the error code. I have a problem because one of the machines has been changed the operating system the exception message is returning in English and the treatment I have is in Portuguese.
Is there a command that returns the error code?
I checked that there is one that displays the type of the error, but I understand it can be a set of errors related to the type.