If I want to terminate a code, what is the best command to use.
For example if code is not able to establish the DB connectivity what is the correct command to use.
Does Environment.Exit(0) is a right command?
Thanks
SaiRam
If I want to terminate a code, what is the best command to use.
For example if code is not able to establish the DB connectivity what is the correct command to use.
Does Environment.Exit(0) is a right command?
Thanks
SaiRam
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sujeet SumanPosted Oct 18, 2015, 2:51 PM
Sairam SohamPosted Oct 18, 2015, 12:08 PM
hi Akhil,
I am catching exception and logging them. And after that I want to exit application.
Akhil GargPosted Oct 18, 2015, 11:00 AM