Adds an event handler for the System.WinForms.Application.ThreadException event.
[Visual Basic] Public Shared Sub AddOnThreadException( _ ByVal handler As ThreadExceptionEventHandler _ ) [C#] public static void AddOnThreadException( ThreadExceptionEventHandler handler ); [C++] public: static void AddOnThreadException( ThreadExceptionEventHandler* handler ); [JScript] public static function AddOnThreadException( handler : ThreadExceptionEventHandler );
System.WinForms.Application.ThreadException handlers are unique to a specific thread.
NGWS Runtime Security:
UIPermission | You must have the System.security.Permissions.UIPermission for AllWindows to set this method. |
Application Class | Application Members | System.WinForms Namespace