DispatcherExtensions.BeginInvoke Metodo
Definizione
Esegue in modo asincrono il delegato specificato sul thread in cui è stato creato Dispatcher.Executes the specified delegate asynchronously on the thread that the Dispatcher was created on.
Overload
BeginInvoke(Dispatcher, Action) |
Esegue in modo asincrono il delegato specificato con priorità normale sul thread in cui è stato creato l'oggetto Dispatcher specificato.Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on. |
BeginInvoke(Dispatcher, Action, DispatcherPriority) |
Esegue in modo asincrono il delegato specificato con la priorità specificata sul thread in cui è stato creato l'oggetto Dispatcher specificato.Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on. |
BeginInvoke(Dispatcher, Action)
Esegue in modo asincrono il delegato specificato con priorità normale sul thread in cui è stato creato l'oggetto Dispatcher specificato.Executes the specified delegate asynchronously with normal priority on the thread that the specified Dispatcher was created on.
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(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);
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
[<System.ComponentModel.Browsable(false)>]
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
<Extension()>
Public Function BeginInvoke (dispatcher As Dispatcher, action As Action) As DispatcherOperation
Parametri
- dispatcher
- Dispatcher
Dispatcher che esegue il delegato.The dispatcher that executes the delegate.
- action
- Action
Delegato da eseguire, che non accetta argomenti e non restituisce un valore.The delegate to execute, which takes no arguments and does not return a value.
Restituisce
Oggetto IAsyncResult che rappresenta il risultato dell'operazione BeginInvoke(Dispatcher, Action).An IAsyncResult object that represents the result of the BeginInvoke(Dispatcher, Action) operation.
- Attributi
Eccezioni
action
è null
.action
is null
.
Si applica a
BeginInvoke(Dispatcher, Action, DispatcherPriority)
Esegue in modo asincrono il delegato specificato con la priorità specificata sul thread in cui è stato creato l'oggetto Dispatcher specificato.Executes the specified delegate asynchronously with the specified priority on the thread that the specified Dispatcher was created on.
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(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);
public static System.Windows.Threading.DispatcherOperation BeginInvoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
[<System.ComponentModel.Browsable(false)>]
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
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
Parametri
- dispatcher
- Dispatcher
Dispatcher che esegue il delegato.The dispatcher that executes the delegate.
- action
- Action
Delegato da eseguire, che non accetta argomenti e non restituisce un valore.The delegate to execute, which takes no arguments and does not return a value.
- priority
- DispatcherPriority
Priorità di esecuzione del delegato rispetto ad altre operazioni in sospeso nella coda degli eventi di Dispatcher.The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.
Restituisce
Oggetto IAsyncResult che rappresenta il risultato dell'operazione BeginInvoke(Dispatcher, Action, DispatcherPriority).An IAsyncResult object that represents the result of the BeginInvoke(Dispatcher, Action, DispatcherPriority) operation.
- Attributi
Eccezioni
action
è null
.action
is null
.
priority
non è un oggetto DispatcherPriority valido.priority
is not a valid DispatcherPriority.