什么是invoke方法的用途 [英] What is use of invoke method

查看:149
本文介绍了什么是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 only Control.Invoke, also Dispatcher.Invoke. Not only Invoke, also BeginInvoke. Control.Invoke is only for System.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 more Invoke 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屋!

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