Dispatcher.BeginInvokeShutdown(DispatcherPriority) Dispatcher.BeginInvokeShutdown(DispatcherPriority) Dispatcher.BeginInvokeShutdown(DispatcherPriority) Dispatcher.BeginInvokeShutdown(DispatcherPriority) Method

Definición

Inicia asincrónicamente el cierre de 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)

Parámetros

priority
DispatcherPriority DispatcherPriority DispatcherPriority DispatcherPriority

Prioridad en la que empezar a cerrar el distribuidor.The priority at which to begin shutting down the dispatcher.

Comentarios

BeginInvokeShutdownsolicita permisos de interfaz de usuario sin restricciones.BeginInvokeShutdown demands unrestricted UI Permissions.

Cuando empieza a cerrarse, se genera ShutdownStarted el evento y HasShutdownStarted se establece en true. DispatcherWhen the Dispatcher starts to shut down, the ShutdownStarted event is raised and HasShutdownStarted is set to true.

Dispatcher No se apaga por completo hasta que se desenrede la cola de eventos.The Dispatcher does not shut down completely until the event queue unwinds.

Cuando el distribuidor termina de cerrarse, se genera el ShutdownFinished evento y la HasShutdownFinished propiedad se establece en true.When the Dispatcher finishes shutting down, the ShutdownFinished event is raised and the HasShutdownFinished property is set to true.

Una vez que se inicia el proceso de cierre, se anulan todos los elementos de trabajo pendientes de la cola.Once the shutdown process begins, all pending work items in the queue are aborted.

Seguridad

UIPermission
para apagar el distribuidor.for shutting down the dispatcher. Enumeraciones asociadas:UnrestrictedAssociated enumerations: Unrestricted

Se aplica a