Dispatcher.CurrentDispatcher Dispatcher.CurrentDispatcher Dispatcher.CurrentDispatcher Dispatcher.CurrentDispatcher Property

Definición

Obtiene Dispatcher del subproceso que se ejecuta actualmente y crea un nuevo objeto Dispatcher si aún no hay ninguno asociado al subproceso.Gets the Dispatcher for the thread currently executing and creates a new Dispatcher if one is not already associated with the thread.

public:
 static property System::Windows::Threading::Dispatcher ^ CurrentDispatcher { System::Windows::Threading::Dispatcher ^ get(); };
public static System.Windows.Threading.Dispatcher CurrentDispatcher { get; }
member this.CurrentDispatcher : System.Windows.Threading.Dispatcher
Public Shared ReadOnly Property CurrentDispatcher As Dispatcher

Valor de propiedad

Distribuidor asociado al subproceso actual.The dispatcher associated with the current thread.

Comentarios

Si un Dispatcher no está asociado con el subproceso actual, un nuevo Dispatcher se creará.If a Dispatcher is not associated with the current thread, a new Dispatcher will be created. Este no es el caso con e método FromThread.This is not the case with the FromThread method. FromThread devolverá null si no hay un distribuidor asociado al subproceso especificado.FromThread will return null if there is not a dispatcher associated with the specified thread.

Se aplica a