DispatcherQueue.RunEventLoop 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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
延後物件,用來延後離開。
- 屬性