Home Cooker Classes Others Rice CookerGX
Classes  >  ehswitch
ehswitch class

Description

Represents a switch that controls the execution of event handler.

Notes

It is a class that is statically included in the Cooker.

fitter

SignatureDescription
ehswitch()

Get a new instance of ehswitch class.

getter

SignatureDescription
ErrorMessages

Get a list of error messages that occurred in the previous execution of the handler.

Fitted

Gets the value that indicates whether this instance was already initialized.

Handler

Gets the instance of the proxy type that stored the instance of any user defined type that have the eventhandler method.

IsEnabled

Gets a value that indicates whether the eventhandler is running.

IsError

Gets a value that indicates whether the last execution of the handler finished with the exception.

ShowException

Gets the value that indicates whether the error messages will be shown if the execution of the handler finished with the exception.

Signature

Gets the signature for calling the handler method.

StopWithException

Gets the value that indicates whether the eventhandler will automatically be stopped if the execution finished with the exception.

TypeName

Gets the type name.

setter

SignatureDescription
ShowException(bool)

Sets the value that indicates whether the error messages will be shown if the execution of the handler finished with the exception.

StopWithException(bool)

Sets the value that indicates whether the eventhandler will automatically be stopped if the execution finished with the exception.

method

SignatureDescription
Start()

Starts the execution of the eventhandler.

Stop()

Stops the execution of the event handler.

Copyright © Rice All rights reserved.