Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 WPF 中,我调用 This.Dispatcher.BeginInvoke(DispatcherPriority.SystemIdle, mydelete);
有没有办法稍后取消 BeginInvoke 方法?
谢谢
Dispatcher.BeginInvoke返回一个DispatcherOperation对象。如果您保留对它的引用,则可以使用它的Abort方法在操作尚未开始执行时使操作出队。
Dispatcher.BeginInvoke
DispatcherOperation
Abort