DispatcherQueue.FrameworkShutdownStarting 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呼叫 ShutdownQueue 或 ShutdownQueueAsync 時引發。 如需引發之事件的完整清單,以及依何種順序,請參閱 ShutdownQueueAsync的。
// Register
event_token FrameworkShutdownStarting(TypedEventHandler<DispatcherQueue, DispatcherQueueShutdownStartingEventArgs const&> const& handler) const;
// Revoke with event_token
void FrameworkShutdownStarting(event_token const* cookie) const;
// Revoke with event_revoker
DispatcherQueue::FrameworkShutdownStarting_revoker FrameworkShutdownStarting(auto_revoke_t, TypedEventHandler<DispatcherQueue, DispatcherQueueShutdownStartingEventArgs const&> const& handler) const;
public event TypedEventHandler<DispatcherQueue,DispatcherQueueShutdownStartingEventArgs> FrameworkShutdownStarting;
function onFrameworkShutdownStarting(eventArgs) { /* Your code */ }
dispatcherQueue.addEventListener("frameworkshutdownstarting", onFrameworkShutdownStarting);
dispatcherQueue.removeEventListener("frameworkshutdownstarting", onFrameworkShutdownStarting);
- or -
dispatcherQueue.onframeworkshutdownstarting = onFrameworkShutdownStarting;
Public Custom Event FrameworkShutdownStarting As TypedEventHandler(Of DispatcherQueue, DispatcherQueueShutdownStartingEventArgs)