Java.Lang.JavaSystem.Exit Method
Causes the VM to stop running and the program to exit with the given exit status.

Syntax

[Android.Runtime.Register("exit", "(I)V", "")]
public static void Exit (int code)

Parameters

code
the return code.

Remarks

Causes the VM to stop running and the program to exit with the given exit status. If JavaSystem.RunFinalizersOnExit(bool) has been previously invoked with a true argument, then all objects will be properly garbage-collected and finalized first.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1