Exit()

Environment::Exit(int) method

Terminates the current process and returns the specified exit code to the operating system.

static void System::Environment::Exit(int exitCode)

Arguments

ParameterTypeDescription
exitCodeintThe exit code to be returned to the operating system

See Also