xtd 0.2.0
do_work_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
6#include <xtd/any>
7#include <cstdint>
8
10namespace xtd {
12 namespace forms {
24 public:
27 do_work_event_args& operator =(const do_work_event_args& do_work_event_args) = default;
29
31
35 explicit do_work_event_args(const xtd::any_object& argument) : argument_(argument) {}
37
39
43 xtd::any_object argument() const noexcept {return argument_;}
44
47 xtd::any_object result() const noexcept {return result_;}
50 void result(const xtd::any_object& value) {result_ = value;}
52
53 private:
54 xtd::any_object argument_;
55 xtd::any_object result_;
56 };
57 }
58}
Contains xtd::forms::cancel_event_args event args.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
Provides data for a cancelable event.
Definition cancel_event_args.hpp:22
Provides data for the xtd::forms::background_worker::do_work event handler.
Definition do_work_event_args.hpp:23
xtd::any_object argument() const noexcept
Gets a value that represents the argument of an asynchronous operation.
Definition do_work_event_args.hpp:43
do_work_event_args(const xtd::any_object &argument)
Initializes a new instance of the DoWorkEventArgs class.
Definition do_work_event_args.hpp:35
void result(const xtd::any_object &value)
Sets a value that represents the result of an asynchronous operation.
Definition do_work_event_args.hpp:50
xtd::any_object result() const noexcept
Gets a value that represents the result of an asynchronous operation.
Definition do_work_event_args.hpp:47
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10