DispatcherExtensions.BeginInvoke Méthode

Définition

Exécute de façon asynchrone le délégué spécifié sur le thread sur lequel Dispatcher a été créé.

Surcharges

BeginInvoke(Dispatcher, Action)

Exécute de façon asynchrone le délégué spécifié avec priorité normale sur le thread sur lequel le Dispatcher spécifié a été créé.

BeginInvoke(Dispatcher, Action, DispatcherPriority)

Exécute de façon asynchrone le délégué spécifié avec la priorité spécifiée sur le thread sur lequel le Dispatcher spécifié a été créé.

BeginInvoke(Dispatcher, Action)

Exécute de façon asynchrone le délégué spécifié avec priorité normale sur le thread sur lequel le Dispatcher spécifié a été créé.

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

Paramètres

dispatcher
Dispatcher

Répartiteur qui exécute le délégué.

action
Action

Délégué à exécuter, qui ne prend pas d'arguments et ne retourne pas de valeur.

Retours

DispatcherOperation

Objet IAsyncResult qui représente le résultat de l'opération BeginInvoke(Dispatcher, Action).

Attributs

Exceptions

action a la valeur null.

S’applique à

BeginInvoke(Dispatcher, Action, DispatcherPriority)

Exécute de façon asynchrone le délégué spécifié avec la priorité spécifiée sur le thread sur lequel le Dispatcher spécifié a été créé.

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

Paramètres

dispatcher
Dispatcher

Répartiteur qui exécute le délégué.

action
Action

Délégué à exécuter, qui ne prend pas d'arguments et ne retourne pas de valeur.

priority
DispatcherPriority

Priorité d'exécution du délégué par rapport aux autres opérations en attente dans la file d'attente des événements Dispatcher.

Retours

DispatcherOperation

Objet IAsyncResult qui représente le résultat de l'opération BeginInvoke(Dispatcher, Action, DispatcherPriority).

Attributs

Exceptions

action a la valeur null.

priority n’est pas un DispatcherPriority valide.

S’applique à