Called before a change takes place.

Namespace:  BioSharp.Core.Utils
Assembly:  BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)

Syntax

C#
public void PreChange(
	ChangeEvent cev
)

Parameters

cev
Type: BioSharp.Core.Utils..::.ChangeEvent
An event encapsulating the change which is about to take place.

Implements

IChangeListener..::.PreChange(ChangeEvent)

Remarks

This is your chance to stop the change by throwing a ChangeVetoException. This method does not indicate that the change will definitely take place, so it is not recomended that you take any positive action within this handler.

Exceptions

ExceptionCondition
BioSharp.Core.Utils..::.ChangeVetoExceptionif the receiver does not wish this change to occur at this time.

See Also