#include <signal_cancel_event_args.h>
Provides data for the environment signal event. This class cannot be inherited.
Constructors | |
signal_cancel_event_args ()=default | |
Initializes a new instance of the signal_cancel_event_args class. More... | |
signal_cancel_event_args (xtd::signal signal) | |
Initializes a new instance of the signal_cancel_event_args class. More... | |
Properties | |
bool | cancel () const noexcept |
Gets a value that indicates whether a signal has interrupted the current process. The default is false, which terminates the current process. More... | |
void | cancel (bool cancel) |
Sets a value that indicates whether a signal has interrupted the current process. The default is false, which terminates the current process. More... | |
xtd::signal | signal () const noexcept |
Gets the signal that interrupted the current process. More... | |
Additional Inherited Members | |
![]() | |
static const event_args | empty |
Provides a value to use with events that do not have event data. More... | |
![]() | |
event_args ()=default | |
Initializes a new instance of the event_args class. More... | |
![]() | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
Gets the type of the current instance. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a sxd::ustring that represents the current object. More... | |
![]() | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
|
default |
Initializes a new instance of the signal_cancel_event_args class.
|
explicit |
Initializes a new instance of the signal_cancel_event_args class.
signal | One of the enumeration values that specifies the key combination that interrupted the current process. There is no default value.. |
|
noexcept |
Gets a value that indicates whether a signal has interrupted the current process. The default is false, which terminates the current process.
void xtd::signal_cancel_event_args::cancel | ( | bool | cancel | ) |
Sets a value that indicates whether a signal has interrupted the current process. The default is false, which terminates the current process.
true | if the current process should resume when the event handler concludes; false if the current process should terminate. The default value is false; the current process terminates when the event handler returns. If true, the current process continues. |
|
noexcept |
Gets the signal that interrupted the current process.