xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
xtd::forms::run_worker_completed_event_args Class Reference

Provides data for the do_work event handler. More...

#include <run_worker_completed_event_args.h>

Inheritance diagram for xtd::forms::run_worker_completed_event_args:
xtd::event_args

Public Member Functions

 run_worker_completed_event_args (const std::any &result, std::optional< std::reference_wrapper< std::exception >> exception, bool cancel)
 Initializes a new instance of the DoWorkEventArgs class. More...
 
bool cancel () const
 
void cancel (bool value)
 
std::any result () const
 
std::any user_state () const
 Gets a value that represents the argument of an asynchronous operation. More...
 

Additional Inherited Members

- Static Public Attributes inherited from xtd::event_args
static const event_args empty
 

Detailed Description

Provides data for the do_work event handler.

Constructor & Destructor Documentation

§ 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
argumentSpecifies an argument for an asynchronous operation.

Member Function Documentation

§ user_state()

std::any xtd::forms::run_worker_completed_event_args::user_state ( ) const
inline

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: