csharp System.Windows.Threading.DispatcherProcessingDisabled类(方法)实例源码

下面列出了csharp System.Windows.Threading.DispatcherProcessingDisabled 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Windows.Threadin   
// The Dispose() method is called at the end of the using statement.
// Calling Dispose on the DispatcherProcessingDisabled structure, 
// which is returned from the call to DisableProcessing, will
// re-enalbe Dispatcher processing.
using (Dispatcher.DisableProcessing())
{
    // Do work while the dispatcher processing is disabled.
    Thread.Sleep(2000);
}


问题


面经


文章

微信
公众号

扫码关注公众号