Runtime.Halt(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Forcibly terminates the currently running Java virtual machine.
[Android.Runtime.Register("halt", "(I)V", "GetHalt_IHandler")]
public virtual void Halt (int status);
[<Android.Runtime.Register("halt", "(I)V", "GetHalt_IHandler")>]
abstract member Halt : int -> unit
override this.Halt : int -> unit
Parameters
- status
- Int32
Termination status. By convention, a nonzero status code
indicates abnormal termination. If the Runtime#exit exit
(equivalently, System#exit(int) System.exit
) method
has already been invoked then this status code
will override the status code passed to that method.
- Attributes
Remarks
Forcibly terminates the currently running Java virtual machine. This method never returns normally.
This method should be used with extreme caution. Unlike the #exit exit
method, this method does not cause shutdown hooks to be started. If the shutdown sequence has already been initiated then this method does not wait for any running shutdown hooks to finish their work.
Added in 1.3.
Java documentation for java.lang.Runtime.halt(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.