什么是invoke方法的用途 [英] What is use of invoke method
本文介绍了什么是invoke方法的用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
invoke方法的用途是什么?它的参数是什么?
What is use of invoke method and what are it''s parameters?
推荐答案
不仅是Control.Invoke
,而且是Dispatcher.Invoke
.不仅Invoke
,而且BeginInvoke
.Control.Invoke
仅适用于System.Windows.Forms
,但是Dispatcher既适用于Forms也适用于WPF.
请阅读我过去关于该主题的答案,非常详细:
Control.Invoke()与Control.BeginInvoke() [ ^ ],
Treeview Scanner和MD5的问题 [
Not onlyControl.Invoke
, alsoDispatcher.Invoke
. Not onlyInvoke
, alsoBeginInvoke
.Control.Invoke
is only forSystem.Windows.Forms
, but Dispatcher works both for Forms and WPF.
Please read my past Answers on the topic, very detailed:
Control.Invoke() vs. Control.BeginInvoke()[^],
Problem with Treeview Scanner And MD5[^].
Also, there are moreInvoke
methods, of events and delegates, and the method invocation in Reflection (see the Answer by Girish) in particular.
—SA
[此处^ ]
这应该有帮助,
[here^]
this should help,
在这里您可以: Control.Invoke方法(委托) [^ ]
Here you go: Control.Invoke Method (Delegate)[^]
这篇关于什么是invoke方法的用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文