語言

DispatcherQueue.RunEventLoop 方法

定義

多載

名稱 Description
RunEventLoop()

執行訊息迴圈,直到呼叫 EnqueueEventLoopExit 或 PostQuitMessage 其中一方。 同時也負責啟動 ShutdownStarting/ShutdownCompleted 和 FrameworkShutdownStarting/FrameworkShutdownCompleted 事件。

RunEventLoop(DispatcherRunOptions, DispatcherExitDeferral)

執行訊息迴圈,直到呼叫 EnqueueEventLoopExit 或 PostQuitMessage 其中一方。 同時也負責啟動 ShutdownStarting/ShutdownCompleted 和 FrameworkShutdownStarting/FrameworkShutdownCompleted 事件。

RunEventLoop()

執行訊息迴圈,直到呼叫 EnqueueEventLoopExit 或 PostQuitMessage 其中一方。 同時也負責啟動 ShutdownStarting/ShutdownCompleted 和 FrameworkShutdownStarting/FrameworkShutdownCompleted 事件。

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)

執行訊息迴圈,直到呼叫 EnqueueEventLoopExit 或 PostQuitMessage 其中一方。 同時也負責啟動 ShutdownStarting/ShutdownCompleted 和 FrameworkShutdownStarting/FrameworkShutdownCompleted 事件。

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

延後物件,用來延後離開。

屬性

適用於