Runtime.RemoveShutdownHook(Thread) Method

Definition

De-registers a previously-registered virtual-machine shutdown hook.

[Android.Runtime.Register("removeShutdownHook", "(Ljava/lang/Thread;)Z", "GetRemoveShutdownHook_Ljava_lang_Thread_Handler")]
public virtual bool RemoveShutdownHook (Java.Lang.Thread? hook);
[<Android.Runtime.Register("removeShutdownHook", "(Ljava/lang/Thread;)Z", "GetRemoveShutdownHook_Ljava_lang_Thread_Handler")>]
abstract member RemoveShutdownHook : Java.Lang.Thread -> bool
override this.RemoveShutdownHook : Java.Lang.Thread -> bool

Parameters

hook
Thread

the hook to remove

Returns

true if the specified hook had previously been registered and was successfully de-registered, false otherwise.

Attributes

Exceptions

if the VM is already shutting down.

Remarks

De-registers a previously-registered virtual-machine shutdown hook.

Added in 1.3.

Java documentation for java.lang.Runtime.removeShutdownHook(java.lang.Thread).

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.

Applies to