DispatcherExtensions.BeginInvoke Método

Definición

Ejecuta de forma asincrónica el delegado especificado en el subproceso en el que se creó el objeto Dispatcher.Executes the specified delegate asynchronously on the thread that the Dispatcher was created on.

Sobrecargas

BeginInvoke(Dispatcher, Action)

Ejecuta de forma asincrónica el delegado especificado con prioridad normal en el subproceso en el que se creó el objeto Dispatcher especificado.Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on.

BeginInvoke(Dispatcher, Action, DispatcherPriority)

Ejecuta de forma asincrónica el delegado especificado con la prioridad indicada en el subproceso en el que se creó el objeto Dispatcher especificado.Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on.

BeginInvoke(Dispatcher, Action)

Ejecuta de forma asincrónica el delegado especificado con prioridad normal en el subproceso en el que se creó el objeto Dispatcher especificado.Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action);
[System.ComponentModel.Browsable(false)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
[<System.ComponentModel.Browsable(false)>]
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
<Extension()>
Public Function BeginInvoke (dispatcher As Dispatcher, action As Action) As DispatcherOperation

Parámetros

dispatcher
Dispatcher

Distribuidor que ejecuta el delegado.The dispatcher that executes the delegate.

action
Action

Delegado que se va a ejecutar, el cual no toma ningún argumento y no devuelve ningún valor.The delegate to execute, which takes no arguments and does not return a value.

Devoluciones

DispatcherOperation

Un objeto IAsyncResult que representa el resultado de la operación BeginInvoke(Dispatcher, Action).An IAsyncResult object that represents the result of the BeginInvoke(Dispatcher, Action) operation.

Atributos

Excepciones

action es null.action is null.

Se aplica a

BeginInvoke(Dispatcher, Action, DispatcherPriority)

Ejecuta de forma asincrónica el delegado especificado con la prioridad indicada en el subproceso en el que se creó el objeto Dispatcher especificado.Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, System::Windows::Threading::DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
[<System.ComponentModel.Browsable(false)>]
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
<Extension()>
Public Function BeginInvoke (dispatcher As Dispatcher, action As Action, priority As DispatcherPriority) As DispatcherOperation

Parámetros

dispatcher
Dispatcher

Distribuidor que ejecuta el delegado.The dispatcher that executes the delegate.

action
Action

Delegado que se va a ejecutar, el cual no toma ningún argumento y no devuelve ningún valor.The delegate to execute, which takes no arguments and does not return a value.

priority
DispatcherPriority

Prioridad de ejecución del delegado con respecto a las demás operaciones pendientes en la cola de eventos de Dispatcher.The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.

Devoluciones

DispatcherOperation

Un objeto IAsyncResult que representa el resultado de la operación BeginInvoke(Dispatcher, Action, DispatcherPriority).An IAsyncResult object that represents the result of the BeginInvoke(Dispatcher, Action, DispatcherPriority) operation.

Atributos

Excepciones

action es null.action is null.

priority no es un DispatcherPriority válido.priority is not a valid DispatcherPriority.

Se aplica a