Share via


DispatcherQueue.ShutdownCompleted イベント

定義

ShutdownQueueAsync が呼び出されたときに発生します。 発生したイベントの完全な一覧と順序については、「 ShutdownQueueAsync の備考」を参照してください。

// Register
event_token ShutdownCompleted(TypedEventHandler<DispatcherQueue, IInspectable const&> const& handler) const;

// Revoke with event_token
void ShutdownCompleted(event_token const* cookie) const;

// Revoke with event_revoker
DispatcherQueue::ShutdownCompleted_revoker ShutdownCompleted(auto_revoke_t, TypedEventHandler<DispatcherQueue, IInspectable const&> const& handler) const;
public event TypedEventHandler<DispatcherQueue,object> ShutdownCompleted;
function onShutdownCompleted(eventArgs) { /* Your code */ }
dispatcherQueue.addEventListener("shutdowncompleted", onShutdownCompleted);
dispatcherQueue.removeEventListener("shutdowncompleted", onShutdownCompleted);
- or -
dispatcherQueue.onshutdowncompleted = onShutdownCompleted;
Public Custom Event ShutdownCompleted As TypedEventHandler(Of DispatcherQueue, Object) 

イベントの種類

// Invoked after the DispatcherQueue event loop exits.
_dispatcherQueue.ShutdownCompleted += (s, e) =>
{
    // clean up state
};

注釈

ShutdownCompleted イベントは、イベント ループが終了した、イベント ループ スレッドから発生します。 このイベントのハンドラーを使用すると、専用スレッドで維持されていたパートナー コンポーネントによって維持される状態をクリーンできます。

適用対象