switch class
Description
Represents a switch that controls event handling.
Notes
It is a class that is statically included in the Cooker.
An instance returned by variable declaration has not been initialized.
fitter
Signature | Description |
switch() | Returns a new instance of switch class. |
getter
Signature | Description |
ErrorMessages | Returns a list of error messages that occurred in the previous execution of the handler. |
Fitted | Returns the value that indicates whether this instance was initialized. |
Handler | Returns an instance of an user-defined class that have the handler method. |
IsAttached | Returns a value that indicates whether the handler is attached to the event handling system. |
IsEnabled | Returns a value that indicates whether the event handling is running. |
IsError | Returns a value that indicates whether the last execution of the handler finished with the exception. |
ShowException | Returns a value that indicates whether to display the error messages. |
Signature | Returns the signature of the handler. |
StopWithException | Returns a value that indicates whether to stop with the exception. |
TypeName | Returns the type name. |
setter
Signature | Description |
Handler(anyclass) | Sets an instance of an user-defined class that have the handler method. |
ShowException(bool) | Sets a value that indicates whether to display the error messages. |
Signature(string) | Sets the signature of the handler. |
StopWithException(bool) | Sets a value that indicates whether to stop with the exception. |