DispatcherExtensions.Invoke Méthode

Définition

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

Surcharges

Invoke(Dispatcher, Action)

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

Invoke(Dispatcher, Action, TimeSpan)

Exécute de façon synchrone le délégué spécifié sur le thread sur lequel le Dispatcher spécifié a été créé et arrête l'exécution après le délai d'attente spécifié.

Invoke(Dispatcher, Action, DispatcherPriority)

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

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

Exécute de façon synchrone le délégué spécifié avec la priorité spécifiée sur le thread sur lequel le Dispatcher spécifié a été créé et arrête l'exécution après le délai d'attente spécifié.

Invoke(Dispatcher, Action)

Exécute de façon synchrone 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 void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action);
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
static member Invoke : System.Windows.Threading.Dispatcher * Action -> unit
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action)

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.

Attributs

Exceptions

action a la valeur null.

S’applique à

Invoke(Dispatcher, Action, TimeSpan)

Exécute de façon synchrone le délégué spécifié sur le thread sur lequel le Dispatcher spécifié a été créé et arrête l'exécution après le délai d'attente spécifié.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, TimeSpan timeout);
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, TimeSpan timeout);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, TimeSpan timeout);
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan -> unit
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action, timeout As TimeSpan)

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.

timeout
TimeSpan

Temps d'attente maximal pour l'aboutissement de l'opération.

Attributs

Exceptions

action a la valeur null.

priority est égal à Inactive.

priority n’est pas un DispatcherPriority valide.

S’applique à

Invoke(Dispatcher, Action, DispatcherPriority)

Exécute de façon synchrone 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 void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, System::Windows::Threading::DispatcherPriority priority);
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
static member Invoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> unit
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action, priority As DispatcherPriority)

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.

Attributs

Exceptions

action a la valeur null.

priority est égal à Inactive.

priority n’est pas un DispatcherPriority valide.

S’applique à

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

Exécute de façon synchrone le délégué spécifié avec la priorité spécifiée sur le thread sur lequel le Dispatcher spécifié a été créé et arrête l'exécution après le délai d'attente spécifié.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, TimeSpan timeout, System::Windows::Threading::DispatcherPriority priority);
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, TimeSpan timeout, System.Windows.Threading.DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, TimeSpan timeout, System.Windows.Threading.DispatcherPriority priority);
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan * System.Windows.Threading.DispatcherPriority -> unit
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan * System.Windows.Threading.DispatcherPriority -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action, timeout As TimeSpan, priority As DispatcherPriority)

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.

timeout
TimeSpan

Temps d'attente maximal pour l'aboutissement de l'opération.

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.

Attributs

Exceptions

action a la valeur null.

priority est égal à Inactive.

priority n’est pas un DispatcherPriority valide.

S’applique à