DispatcherExtensions.Invoke Méthode

Définition

Exécute le délégué spécifié de manière synchrone sur le thread sur lequel l’objet spécifié Dispatcher a été créé.

Surcharges

Nom Description
Invoke(Dispatcher, Action)

Exécute le délégué spécifié de manière synchrone avec une priorité normale sur le thread sur lequel le délégué spécifié Dispatcher a été créé.

Invoke(Dispatcher, Action, TimeSpan)

Exécute le délégué spécifié de manière synchrone sur le thread sur lequel l’objet spécifié Dispatcher a été créé et arrête l’exécution après le délai d’attente spécifié.

Invoke(Dispatcher, Action, DispatcherPriority)

Exécute le délégué spécifié de manière synchrone avec la priorité spécifiée sur le thread sur lequel le délégué spécifié Dispatcher a été créé.

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

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

Invoke(Dispatcher, Action)

Exécute le délégué spécifié de manière synchrone 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 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 aucun argument et ne retourne pas de valeur.

Attributs

Exceptions

action a la valeur null.

S’applique à

Invoke(Dispatcher, Action, TimeSpan)

Exécute le délégué spécifié de manière synchrone sur le thread sur lequel l’objet spécifié Dispatcher 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 aucun argument et ne retourne pas de valeur.

timeout
TimeSpan

Délai maximal d’attente de la fin de l’opération.

Attributs

Exceptions

action a la valeur null.

priority est égal à Inactive.

priority n’est pas valide DispatcherPriority.

S’applique à

Invoke(Dispatcher, Action, DispatcherPriority)

Exécute le délégué spécifié de manière synchrone 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 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 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 .

Attributs

Exceptions

action a la valeur null.

priority est égal à Inactive.

priority n’est pas valide DispatcherPriority.

S’applique à

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

Exécute le délégué spécifié de façon synchrone avec la priorité spécifiée sur le thread sur lequel le spécifié Dispatcher 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 aucun argument et ne retourne pas de valeur.

timeout
TimeSpan

Délai maximal d’attente de la fin de l’opération.

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 .

Attributs

Exceptions

action a la valeur null.

priority est égal à Inactive.

priority n’est pas valide DispatcherPriority.

S’applique à