DispatcherQueue.RunEventLoop 方法

定义

重载

RunEventLoop()

运行消息循环,直到调用 EnqueueEventLoopExitPostQuitMessage 。 还处理引发 ShutdownStarting/ShutdownCompletedFrameworkShutdownStarting/FrameworkShutdownCompleted 事件。

RunEventLoop(DispatcherRunOptions, DispatcherExitDeferral)

运行消息循环,直到调用 EnqueueEventLoopExitPostQuitMessage 。 还处理引发 ShutdownStarting/ShutdownCompletedFrameworkShutdownStarting/FrameworkShutdownCompleted 事件。

RunEventLoop()

public:
 virtual void RunEventLoop() = RunEventLoop;
/// [Windows.Foundation.Metadata.Overload("RunEventLoop")]
void RunEventLoop();
[Windows.Foundation.Metadata.Overload("RunEventLoop")]
public void RunEventLoop();
function runEventLoop()
Public Sub RunEventLoop ()
属性

适用于

RunEventLoop(DispatcherRunOptions, DispatcherExitDeferral)

public:
 virtual void RunEventLoop(DispatcherRunOptions options, DispatcherExitDeferral ^ deferral) = RunEventLoop;
/// [Windows.Foundation.Metadata.Overload("RunEventLoopWithOptions")]
void RunEventLoop(DispatcherRunOptions const& options, DispatcherExitDeferral const& deferral);
[Windows.Foundation.Metadata.Overload("RunEventLoopWithOptions")]
public void RunEventLoop(DispatcherRunOptions options, DispatcherExitDeferral deferral);
function runEventLoop(options, deferral)
Public Sub RunEventLoop (options As DispatcherRunOptions, deferral As DispatcherExitDeferral)

参数

options
DispatcherRunOptions

与退出消息相关的选项。

deferral
DispatcherExitDeferral

一个延迟对象,用于延迟退出。

属性

适用于