Android Guides | Samples

Java.Lang.Runtime.RunFinalizersOnExit Method

Sets the flag that indicates whether all objects are finalized when the runtime is about to exit.

Syntax

[Android.Runtime.Register("runFinalizersOnExit", "(Z)V", "")]
[System.Obsolete("deprecated")]
public static Void RunFinalizersOnExit (Boolean run)

Parameters

run
true to enable finalization on exit, false to disable it.

Remarks

Sets the flag that indicates whether all objects are finalized when the runtime is about to exit. Note that all finalization which occurs when the system is exiting is performed after all running threads have been terminated.

[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