DispacherObject定义了Dispather属性(Dispather类型),它包含了一些Invoke(同步调用)与BeginInvoke(异步调用)的重载。这些方法可以让你传入一个委托,并在dispather相应的UI线程上被调用。
基于24个网页-相关网页
Then, you have to call BeginInvoke on this delegate object.
然后,你必须在这个委托对象上调用BeginInvoke方法。
As you have seen, the compiler ensures that the first arguments of the BeginInvoke method are the arguments of the method to be called.
正如你看到的,编译器确保BeginInvoke方法的第一个参数是被调用方法的参数。
Invoke performs a synchronous invocation, while the BeginInvoke and EndInvoke functions follow the Asynchronous Programming Model pattern.
当BeginInvoke和EndInvoke函数是异步程序模式时,调用就是同步调用。
应用推荐