Dispatcher.BeginInvokeShutdown(DispatcherPriority) Metodo

Definizione

Inizia in modo asincrono l'arresto di Dispatcher.Initiates shutdown of the Dispatcher asynchronously.

public:
 void BeginInvokeShutdown(System::Windows::Threading::DispatcherPriority priority);
[System.Security.SecurityCritical]
public void BeginInvokeShutdown (System.Windows.Threading.DispatcherPriority priority);
member this.BeginInvokeShutdown : System.Windows.Threading.DispatcherPriority -> unit
Public Sub BeginInvokeShutdown (priority As DispatcherPriority)

Parametri

priority
DispatcherPriority

Priorità con la quale iniziare ad arrestare il dispatcher.The priority at which to begin shutting down the dispatcher.

Attributi

Commenti

BeginInvokeShutdownrichiede autorizzazioni di interfaccia utente senza restrizioni.BeginInvokeShutdown demands unrestricted UI Permissions.

Quando inizia ad arrestare, l' ShutdownStarted evento viene generato e HasShutdownStarted impostato su true. DispatcherWhen the Dispatcher starts to shut down, the ShutdownStarted event is raised and HasShutdownStarted is set to true.

Il Dispatcher non si arresta completamente fino alla rimozione della coda di eventi.The Dispatcher does not shut down completely until the event queue unwinds.

Al termine dell'arresto del dispatcher, viene generato ShutdownFinished l'evento e la HasShutdownFinished proprietà viene impostata su true.When the Dispatcher finishes shutting down, the ShutdownFinished event is raised and the HasShutdownFinished property is set to true.

Una volta avviato il processo di arresto, tutti gli elementi di lavoro in sospeso nella coda vengono interrotti.Once the shutdown process begins, all pending work items in the queue are aborted.

Sicurezza

UIPermission
per arrestare il dispatcher.for shutting down the dispatcher. Enumerazioni associate:UnrestrictedAssociated enumerations: Unrestricted

Si applica a