DispatcherExtensions.BeginInvoke Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Exécute le délégué spécifié de manière asynchrone sur le thread sur lequel l’objet Dispatcher a été créé.
Surcharges
| Nom | Description |
|---|---|
| BeginInvoke(Dispatcher, Action) |
Exécute le délégué spécifié de façon asynchrone avec une priorité normale sur le thread sur lequel le délégué spécifié Dispatcher a été créé. |
| BeginInvoke(Dispatcher, Action, DispatcherPriority) |
Exécute le délégué spécifié de façon asynchrone avec la priorité spécifiée sur le thread sur lequel le délégué spécifié Dispatcher a été créé. |
BeginInvoke(Dispatcher, Action)
Exécute le délégué spécifié de façon asynchrone avec une priorité normale sur le thread sur lequel le délégué spécifié Dispatcher 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 aucun argument et ne retourne pas de valeur.
Retours
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 le délégué spécifié de façon asynchrone avec la priorité spécifiée sur le thread sur lequel le délégué spécifié Dispatcher 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 aucun argument et ne retourne pas de valeur.
- priority
- DispatcherPriority
Priorité d’exécution du délégué par rapport à d’autres opérations en attente dans la file d’attente d’événements Dispatcher .
Retours
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 valide DispatcherPriority.