是否有一个BackgroundWorker替代的.NET Compact Framework 3.5的?有一个、BackgroundWorker、NET、Framework

2023-09-02 10:28:44 作者:我的温柔喂过狗

我想用类似 BackgroundWorker的,这是从完整的.NET框架已知的,在移动设备上。遗憾的是它是不是在紧凑架构提供。

I want to use something similar to the BackgroundWorker, which is known from the full .NET Framework, on mobile devices. Sadly it is not available in the compact framework.

我可以用什么代替呢?

推荐答案

有一个MSDN网站上讨论的后台处理的CF 的技术。

There is an MSDN site discussing the Background Processing Techniques on the CF.

最常见的方法是使用 ThreadPool.QueueUserWorkItem而不是一个BackgroundWorker ,虽然也有其他的选择。

The most common option is to use ThreadPool.QueueUserWorkItem instead of a BackgroundWorker, although there are other options.