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)