共用方式為


Thread.UncaughtExceptionHandler Property

Definition

Returns the handler invoked when this thread abruptly terminates due to an uncaught exception. -or- Set the handler invoked when this thread abruptly terminates due to an uncaught exception.

public virtual Java.Lang.Thread.IUncaughtExceptionHandler? UncaughtExceptionHandler { [Android.Runtime.Register("getUncaughtExceptionHandler", "()Ljava/lang/Thread$UncaughtExceptionHandler;", "GetGetUncaughtExceptionHandlerHandler")] get; [Android.Runtime.Register("setUncaughtExceptionHandler", "(Ljava/lang/Thread$UncaughtExceptionHandler;)V", "GetSetUncaughtExceptionHandler_Ljava_lang_Thread_UncaughtExceptionHandler_Handler")] set; }
[<get: Android.Runtime.Register("getUncaughtExceptionHandler", "()Ljava/lang/Thread$UncaughtExceptionHandler;", "GetGetUncaughtExceptionHandlerHandler")>]
[<set: Android.Runtime.Register("setUncaughtExceptionHandler", "(Ljava/lang/Thread$UncaughtExceptionHandler;)V", "GetSetUncaughtExceptionHandler_Ljava_lang_Thread_UncaughtExceptionHandler_Handler")>]
member this.UncaughtExceptionHandler : Java.Lang.Thread.IUncaughtExceptionHandler with get, set

Property Value

the uncaught exception handler for this thread

Attributes

Remarks

Property getter documentation:

Java documentation for java.lang.Thread.getUncaughtExceptionHandler().

Property setter documentation:

Java documentation for java.lang.Thread.setUncaughtExceptionHandler(java.lang.UncaughtExceptionHandler).

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