Provides data for the xtd::forms::background_worker::do_work event handler.
- Header
#include <xtd/forms/do_work_event_args>
- Namespace
- xtd::forms
- Library
- xtd.forms
|
std::any | argument () const noexcept |
| Gets a value that represents the argument of an asynchronous operation. More...
|
|
std::any | result () const noexcept |
| Gets a value that represents the result of an asynchronous operation. More...
|
|
void | result (std::any value) |
| Sets a value that represents the result of an asynchronous operation. More...
|
|
◆ do_work_event_args()
xtd::forms::do_work_event_args::do_work_event_args |
( |
const std::any & |
argument | ) |
|
|
inlineexplicit |
Initializes a new instance of the DoWorkEventArgs class.
- Parameters
-
argument | Specifies an argument for an asynchronous operation. |
◆ argument()
std::any xtd::forms::do_work_event_args::argument |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value that represents the argument of an asynchronous operation.
- Returns
- An object representing the argument of an asynchronous operation.
◆ result() [1/2]
std::any xtd::forms::do_work_event_args::result |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value that represents the result of an asynchronous operation.
- Returns
- A std::any representing the result of an asynchronous operation.
◆ result() [2/2]
void xtd::forms::do_work_event_args::result |
( |
std::any |
value | ) |
|
|
inline |
Sets a value that represents the result of an asynchronous operation.
- Parameters
-
value | A std::any representing the result of an asynchronous operation. |
The documentation for this class was generated from the following file: