quitting a C# app

  • Thread starter Thread starter Dave Cullen
  • Start date Start date
D

Dave Cullen

Can someone please tell me the function for unconditionally terminating
an application for non-recoverable errors? In C++ I'd use exit(0).

Thanks.
 
Some other notable methods
- System.Environment.Exit()
- System.Diagnostics.Process.GetCurrentProcess().Kill()

--
Jared Parsons [MSFT]
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 
Back
Top