Home Cooker Classes Others Rice CookerGX
Classes  >  ehswitch  >  StopWithException(bool)
ehswitch class : StopWithException(bool) setter

Description

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

Syntax

ehswitchInstance.StopWithException = stop

Arguments

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

Return value

None

Sample code

//anyEhswitch is an instance of ehswitch type.

anyEhswitch.StopWithException = true;

Notes

Sets true if the eventhandler will automatically be stopped. Otherwise, sets false.

The defalut is true.

Links for reference

None

Copyright © Rice All rights reserved.