Condividi tramite


DispatcherQueue.ShutdownCompleted Evento

Definizione

Generato quando viene chiamato ShutdownQueueAsync . Per un elenco completo degli eventi generati e nell'ordine, vedere le osservazioni per 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) 

Tipo evento

Esempio

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

Commenti

L'evento ShutdownCompleted viene generato dal thread del ciclo di eventi dopo l'uscita del ciclo di eventi. È possibile usare il gestore per questo evento per pulire qualsiasi stato gestito dai componenti partner gestiti nel thread dedicato.

Si applica a