When should one use Environment.Exit to terminate a console application?

前端 未结 7 1376
长发绾君心
长发绾君心 2020-12-03 06:58

I\'m maintaining a number of console applications at work and one thing I\'ve been noticing in a number of them is that they call Environment.Exit(0).

A sample progr

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 07:05

    In SSIS when you have an Execute Process Task and you want to know if process is failure , this method is useful.

提交回复
热议问题