抛出新异常在C#中创建另一个线程 [英] Is throw new exception create another thread in C#
本文介绍了抛出新异常在C#中创建另一个线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨专家,
抛出新的异常在C#中创建另一个线程。
例如
Hi Experts,
Is throw new Exception create another thread in C#.
e.g
throw new Exception("Data not found in database");
推荐答案
否。
异常将在当前线程上继续,以可能的为准。
创建一个新线程,您需要显式创建一个,可能使用Thread或BackgroundWorker类。
No.
The exception will continue on the current thread, whichever that may be.
To create a new thread, you need to explicitly create one, perhaps using the Thread or BackgroundWorker classes.
这篇关于抛出新异常在C#中创建另一个线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文