ArcObjects Library Reference (Controls)  

IEngineEditor.AbortOperation Method

Aborts an edit operation.

[Visual Basic .NET]
Public Sub AbortOperation ( _
)
[C#]
public void AbortOperation (
);
[C++]
HRESULT AbortOperation(
void
);

Product Availability

Available with ArcGIS Engine.

Description

AbortOperation should be used to terminate the edit operation without saving any changes. Those changes that were made after IEngineEditor::StartOperation was called are undone, and nothing is added to the operation stack.

You may wish to test that your edit operation is valid before saving any changes. If the test fails you should call AbortOperation instead of IEngineEditor::StopOperation.

Remarks

This method fires theIEngineEditEvents::OnSelectionChanged and IEngineEditEvents::OnAbort events.

See Also

IEngineEditor Interface