Provides data for the xtd::forms::background_worker::run_worker_completed event handler.
- Header
#include <xtd/forms/run_wrker_completed_event_args>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Examples:
- background_worker.cpp.
|
bool | cancel () const noexcept |
|
void | cancel (bool value) |
|
std::any | user_state () const noexcept |
| Gets a value that represents the argument of an asynchronous operation. More...
|
|
std::any | result () const noexcept |
|
◆ run_worker_completed_event_args()
xtd::forms::run_worker_completed_event_args::run_worker_completed_event_args |
( |
const std::any & |
result, |
|
|
std::optional< std::reference_wrapper< std::exception >> |
exception, |
|
|
bool |
cancel |
|
) |
| |
|
inline |
Initializes a new instance of the DoWorkEventArgs class.
- Parameters
-
argument | Specifies an argument for an asynchronous operation. |
◆ user_state()
std::any xtd::forms::run_worker_completed_event_args::user_state |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value that represents the argument of an asynchronous operation.
- Returns
- An object representing the argument of an asynchronous operation.
The documentation for this class was generated from the following file: