Home News DOC Class DL Others Rice
Class  >  switch
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

SignatureDescription
switch()

Returns a new instance of switch class.

getter

SignatureDescription
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.

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

SignatureDescription
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.

method

SignatureDescription
OneShot()

Starts the event handling.

Start()

Starts the event handling.

Stop()

Stops the event handling.

Copyright © Rice All rights reserved.