DispatcherExtensions.Invoke Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Esegue il delegato specificato in modo sincrono sul thread in cui è stato creato l'oggetto specificato Dispatcher .
Overload
| Nome | Descrizione |
|---|---|
| Invoke(Dispatcher, Action) |
Esegue il delegato specificato in modo sincrono con priorità normale sul thread in cui è stato creato l'oggetto specificato Dispatcher . |
| Invoke(Dispatcher, Action, TimeSpan) |
Esegue il delegato specificato in modo sincrono sul thread in cui è stato creato l'oggetto specificato Dispatcher e arresta l'esecuzione dopo il periodo di timeout specificato. |
| Invoke(Dispatcher, Action, DispatcherPriority) |
Esegue il delegato specificato in modo sincrono con la priorità specificata nel thread in cui è stato creato l'oggetto specificato Dispatcher . |
| Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority) |
Esegue il delegato specificato in modo sincrono con la priorità specificata nel thread in cui è stato creato l'oggetto specificato Dispatcher e arresta l'esecuzione dopo il periodo di timeout specificato. |
Invoke(Dispatcher, Action)
Esegue il delegato specificato in modo sincrono con priorità normale sul thread in cui è stato creato l'oggetto specificato Dispatcher .
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)
Parametri
- dispatcher
- Dispatcher
Dispatcher che esegue il delegato.
- action
- Action
Delegato da eseguire, che non accetta argomenti e non restituisce un valore.
- Attributi
Eccezioni
action è null.
Si applica a
Invoke(Dispatcher, Action, TimeSpan)
Esegue il delegato specificato in modo sincrono sul thread in cui è stato creato l'oggetto specificato Dispatcher e arresta l'esecuzione dopo il periodo di timeout specificato.
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)
Parametri
- dispatcher
- Dispatcher
Dispatcher che esegue il delegato.
- action
- Action
Delegato da eseguire, che non accetta argomenti e non restituisce un valore.
- timeout
- TimeSpan
Tempo massimo di attesa per il completamento dell'operazione.
- Attributi
Eccezioni
action è null.
priority è uguale a Inactive.
priority non è un DispatcherPriorityvalido.
Si applica a
Invoke(Dispatcher, Action, DispatcherPriority)
Esegue il delegato specificato in modo sincrono con la priorità specificata nel thread in cui è stato creato l'oggetto specificato Dispatcher .
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)
Parametri
- dispatcher
- Dispatcher
Dispatcher che esegue il delegato.
- action
- Action
Delegato da eseguire, che non accetta argomenti e non restituisce un valore.
- priority
- DispatcherPriority
Priorità di esecuzione del delegato rispetto ad altre operazioni in sospeso nella coda di Dispatcher eventi.
- Attributi
Eccezioni
action è null.
priority è uguale a Inactive.
priority non è un DispatcherPriorityvalido.
Si applica a
Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)
Esegue il delegato specificato in modo sincrono con la priorità specificata nel thread in cui è stato creato l'oggetto specificato Dispatcher e arresta l'esecuzione dopo il periodo di timeout specificato.
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)
Parametri
- dispatcher
- Dispatcher
Dispatcher che esegue il delegato.
- action
- Action
Delegato da eseguire, che non accetta argomenti e non restituisce un valore.
- timeout
- TimeSpan
Tempo massimo di attesa per il completamento dell'operazione.
- priority
- DispatcherPriority
Priorità di esecuzione del delegato rispetto ad altre operazioni in sospeso nella coda di Dispatcher eventi.
- Attributi
Eccezioni
action è null.
priority è uguale a Inactive.
priority non è un DispatcherPriorityvalido.