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 이벤트는 이벤트 루프가 종료된 이벤트 루프 스레드에서 발생합니다. 이 이벤트에 대한 처리기를 사용하여 전용 스레드에서 유지 관리된 파트너 구성 요소에서 유지 관리하는 상태를 클린 수 있습니다.

적용 대상