Share via


DispatcherQueue.RunEventLoop Method

Definition

Overloads

RunEventLoop()

Runs a message loop until either EnqueueEventLoopExit or PostQuitMessage is called. Also handles raising the ShutdownStarting/ShutdownCompleted and FrameworkShutdownStarting/FrameworkShutdownCompleted events.

RunEventLoop(DispatcherRunOptions, DispatcherExitDeferral)

Runs a message loop until either EnqueueEventLoopExit or PostQuitMessage is called. Also handles raising the ShutdownStarting/ShutdownCompleted and FrameworkShutdownStarting/FrameworkShutdownCompleted events.

RunEventLoop()

Runs a message loop until either EnqueueEventLoopExit or PostQuitMessage is called. Also handles raising the ShutdownStarting/ShutdownCompleted and FrameworkShutdownStarting/FrameworkShutdownCompleted events.

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 ()
Attributes

Applies to

RunEventLoop(DispatcherRunOptions, DispatcherExitDeferral)

Runs a message loop until either EnqueueEventLoopExit or PostQuitMessage is called. Also handles raising the ShutdownStarting/ShutdownCompleted and FrameworkShutdownStarting/FrameworkShutdownCompleted events.

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)

Parameters

options
DispatcherRunOptions

Options for related to the quit message.

deferral
DispatcherExitDeferral

A deferral object, used to defer exit.

Attributes

Applies to