2021-01-27 13:42:22 +01:00
|
|
|
Calling ``++Environment.Exit(exitCode)++`` or ``++Application.Exit()++`` terminates the process and returns an exit code to the operating system..
|
2021-02-02 15:02:10 +01:00
|
|
|
|
2020-06-30 12:47:33 +02:00
|
|
|
Each of these methods should be used with extreme care, and only when the intent is to stop the whole application.
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
Environment.Exit(0);
|
|
|
|
Application.Exit();
|
|
|
|
----
|
|
|
|
|
|
|
|
== Exceptions
|
|
|
|
|
2021-01-27 13:42:22 +01:00
|
|
|
These methods are ignored inside ``++Main++``.
|