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


IEditor.StartOperation Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditor.StartOperation Method

Starts an edit operation.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

StartOperation and StopOperation mark the beginning and end of an edit operation. Edit operations provide undo/redo capabilites for any action or set of actions (additions, deletions, or modifications) taken on features.
Calling StopOperation creates an edit operation that is added to the top of the operation stack. The operation stack is how ArcMap implements Undo and Redo. When using StartOperation, proper handling of errors, including the use of AbortOperation, is neccessary.

All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.

If you call StartOperation when an edit operation has already been started, you will get an error.

See Also

IEditor Interface | IEditor.StopOperation Method

.NET Snippets

Flip Line Direction

.NET Samples

Curve conversion add-in (Code Files: CurveConversionDockWin) | Points along line construction tool (Code Files: PointsAlongLineForm) | ViperPin tool (Code Files: ViperPinForm)

.NET Related Topics

Creating features in the editor | Managing edit sessions and edit operations