用 Application.SetUnhandledExceptionMode Method ,
分别对应
Automatic Route all exceptions to the ThreadException handler, unless the application's configuration file specifies otherwise.
CatchException Always route exceptions to the ThreadException handler. Ignore the application configuration file.
ThrowException Never route exceptions to the ThreadException handler. Ignore the application configuration file.