TypeContext :: canDelete - Check whether the selected instance can be deleted
The function is called from the system or when calling Property::canDelete() in order to check whether deleting instance is possible or not. By default, the function returns true. In order to perform application specific checks, the function has to be overloaded in a corresponding type context class.
The function is not an event, i.e. it is not called before deleting an instance. In order to be consistent, it is suggested to call the function also in the doBeforeDelete() event handler.
Notes:
The function must not be called for checking the action but performs the check. For checking the action one may call Property::canDelete().
Return value: Success ( bool )
The value is true when the function was executed successfully. Otherwise the value is set to false.