公寓形式和同步上下文之间的区别 [英] difference between Apartments Forms and Synchronization Contexts

查看:75
本文介绍了公寓形式和同步上下文之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apartments和Windows窗体和同步上下文之间有什么区别?

what difference between Apartments and Windows Forms and Synchronization Contexts?

推荐答案

如果您搜索MTA和STA,您将获得一些有关Apartments的非常详细的信息. />
同步上下文用于跨线程传递(例如,通过SendOrPostCallback委托向UI线程调用方法).还可以查看BackgroundWorker内部使用的AsyncOperationAsyncOperationManager(这些在内部使用Syncronization上下文).
If you google for MTA and STA you will get some very detailed information about apartments.

Synchronisation contexts are used for passing across threads (such as invoking a method via a SendOrPostCallback delegate to the UI thread). Also have a look at AsyncOperation and AsyncOperationManager (these use Syncronization contexts under the hood) as used internally by the BackgroundWorker.


您必须向Google学习:非常快速使用从您的问题中复制并粘贴的"Apartments and Windows Forms和Synchronization Contexts"进行搜索,得到的结果是: http://www.scribd.com/doc/7336837/36/Apartments-and-Windows-Forms [
You must learn to Google: a very quick search using "Apartments and Windows Forms and Synchronization Contexts" copied and pasted from your question gave this: http://www.scribd.com/doc/7336837/36/Apartments-and-Windows-Forms[^] (among others).


这篇关于公寓形式和同步上下文之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆