的Windows 8商店应用不支持主题了:在一个System.Threading.Thread没有在Windows 8商店应用支持
protected static Thread m_thread = null;
然后:
我创建类库线程功能:
m_thread = new Thread(new ParameterizedThreadStart(RunDetection));
m_thread.Start(Something);
我还需要中止功能:
m_thread.Abort();
如何在WIN8商店应用程序中执行此操作?
不应该在任何类型的环境中中止线程。 – Servy
访问'System.Threading'命名空间对于Windows应用商店应用程序来说完全是为了强制每个I/O或网络绑定任务实施异步API。现在,线程池线程(通过在Windows.System.Threading命名空间中引入的TPL或'Threadpool'类)是异步排队工作的唯一方法,它不必在主应用程序线程上运行。 – RBT