xtd 1.0.0
Loading...
Searching...
No Matches
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:
26
30 explicit do_work_event_args(const xtd::any_object& argument) : argument_(argument) {}
32
34
38 [[nodiscard]] auto argument() const noexcept -> const xtd::any_object& {return argument_;}
39
42 [[nodiscard]] auto result() const noexcept -> const xtd::any_object& {return result_;}
45 auto result(const xtd::any_object& value) -> do_work_event_args& {
46 result_ = value;
47 return *this;
48 }
49
50
51 private:
52 xtd::any_object argument_;
53 xtd::any_object result_;
54 };
55 }
56}
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
auto argument() const noexcept -> const xtd::any_object &
Gets a value that represents the argument of an asynchronous operation.
Definition do_work_event_args.hpp:38
auto result(const xtd::any_object &value) -> do_work_event_args &
Sets a value that represents the result of an asynchronous operation.
Definition do_work_event_args.hpp:45
do_work_event_args(const xtd::any_object &argument)
Initializes a new instance of the DoWorkEventArgs class.
Definition do_work_event_args.hpp:30
auto result() const noexcept -> const xtd::any_object &
Gets a value that represents the result of an asynchronous operation.
Definition do_work_event_args.hpp:42
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8