This document is archived and information here might be outdated.  Recommended version.


IEngineEditor.StartOperation Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditor.StartOperation Method

Starts an edit operation.

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

Product Availability

Available with ArcGIS Engine.

Description

StartOperation marks the beginning of an edit operation. To provide undo/redo capability programmatically all edits must be performed within an edit operation. 


Calling IEngineEditor::StopOperation completes an edit operation which is then added to the top of the operation stack. The operation stack is how ArcGIS Engine implements Undo and Redo. When using StartOperation, proper error handling, including the use of IEgineEditor::AbortOperation, is neccessary.


Edit operations cannot be nested; calling StartOperation within another operation will raise an error.

 

Remarks

This method fires the IEngineEditEvents::OnStartOperation event.

See Also

IEngineEditor Interface