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


IEditor.StopEditing Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IEditor.StopEditing Method

Stops an edit session.

[Visual Basic .NET]
Public Sub StopEditing ( _
    ByVal saveChanges As Boolean _
)
[C#]
public void StopEditing (
    bool saveChanges
);

Product Availability

Available with ArcGIS Desktop.

Errors Returned

FDO_E_VERSION_REDEFINED=[-2147217147]
The version has been redefined to reference a new database state.

Remarks

Call this function to complete an edit session. The required Boolean parameter controls whether modifications made to features will be saved or discarded. To save your changes, use TRUE ; to discard them, use FALSE . StopEditing also clears all snap agents and unselects all selected features.

See Also

IEditor Interface