This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.StopOperation Method (ArcObjects .NET 10.4 SDK) |
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
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.
This method fires the IEngineEditEvents::OnBeforeStopOperation and IEngineEditEvents::OnStopOperation events.