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


IEngineEditor.StopOperation Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditor.StopOperation Method

Stops an edit operation.

[Visual Basic .NET]
Public Sub StopOperation ( _
    ByVal operationName As String _
)
[C#]
public void StopOperation (
    string operationName
);
[C++]
HRESULT StopOperation(
  BSTR operationName
);
[C++]

Parameters operationName [in]
operationName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine.

Description

StopOperation marks the end of an edit operation. Calling StopOperation creates an edit operation that is added to the top of the operation stack. The operation stack is how ArcGIS Engine implements Undo and Redo.

When using IEngineEditor::StartOperation proper handling of errors, including the use of IEngineEditor::AbortOperation, is neccessary.

The string argument allows the operation to be identified on the operaton stack.

Remarks

This method fires the IEngineEditEvents::OnBeforeStopOperation and IEngineEditEvents::OnStopOperation events.

See Also

IEngineEditor Interface