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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Akhil GargRank #772 · 3K reputationPosted Oct 18, 2015, 7:00 AM EDT
Sairam Soham51 reputationPosted Oct 18, 2015, 8:08 AM EDT
hi Akhil,
I am catching exception and logging them. And after that I want to exit application.
Sujeet SumanRank #790 · 2.9K reputationPosted Oct 18, 2015, 10:51 AM EDT