I need to abort an edit operation somewhere, determined by a certain condition.
Heres the code I'm using:
private const int E_FAIL = -2147467259;
private void _Events_OnDeleteFeature(IObject obj)
{
_logger.Info("Iniciando handler de OnDeleteFeature...");
try
{
// do we need to abort it?
// this method returns a COMException with code = E_FAIL;
if (DoINeedToAbort(obj, geaEditOperation.DELETE))
return;
}
catch (COMException comEx)
{
throw comEx;
}
}
This is not showing me the appropriate message and it's not aborting the operation. BTW, this event is a IEditEvent, and it's being fired ok. The problem is to abort the operation, without calling _editor.AbortEditOperation(), which gives me an ugly message.
This is where I looked it in ESRIs manual (I know that the following applies to class extensions)
Any tips?
