1

我有一个带有线程的 WPF 应用程序。关闭应用程序时如何中止所有线程?

4

1 回答 1

4

创建线程后,将IsBackground属性设置为true

Thread th = new Thread(new ThreadStart(Start));
th.IsBackground = true;
th.Start();
于 2013-01-02T19:40:47.073 回答