DispatcherExtensions.BeginInvoke Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Ejecuta el delegado especificado de forma asincrónica en el subproceso en el que se creó .Dispatcher
Sobrecargas
| Nombre | Description |
|---|---|
| BeginInvoke(Dispatcher, Action) |
Ejecuta el delegado especificado de forma asincrónica con prioridad normal en el subproceso en el que se creó el especificado Dispatcher . |
| BeginInvoke(Dispatcher, Action, DispatcherPriority) |
Ejecuta el delegado especificado de forma asincrónica con la prioridad especificada en el subproceso en el que se creó el especificado Dispatcher . |
BeginInvoke(Dispatcher, Action)
Ejecuta el delegado especificado de forma asincrónica con prioridad normal en el subproceso en el que se creó el especificado Dispatcher .
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(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)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke(this System.Windows.Threading.Dispatcher dispatcher, Action action);
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
[<System.ComponentModel.Browsable(false)>]
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.
- action
- Action
Delegado que se va a ejecutar, que no toma ningún argumento y no devuelve un valor.
Devoluciones
Objeto IAsyncResult que representa el resultado de la BeginInvoke(Dispatcher, Action) operación.
- Atributos
Excepciones
action es null.
Se aplica a
BeginInvoke(Dispatcher, Action, DispatcherPriority)
Ejecuta el delegado especificado de forma asincrónica con la prioridad especificada en el subproceso en el que se creó el especificado Dispatcher .
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(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)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke(this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
[<System.ComponentModel.Browsable(false)>]
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.
- action
- Action
Delegado que se va a ejecutar, que no toma ningún argumento y no devuelve un valor.
- priority
- DispatcherPriority
Prioridad de ejecución del delegado en relación con otras operaciones pendientes en la cola de Dispatcher eventos.
Devoluciones
Objeto IAsyncResult que representa el resultado de la BeginInvoke(Dispatcher, Action, DispatcherPriority) operación.
- Atributos
Excepciones
action es null.
priority no es un valor válido DispatcherPriority.