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

IEditor.HasEdits Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor Interface > IEditor.HasEdits Method
ArcGIS Developer Help

IEditor.HasEdits Method

Indicates whether edits have been made during the session.

[Visual Basic .NET]
Public Function HasEdits ( _
) As Boolean
public bool HasEdits (

Product Availability

Available with ArcGIS Desktop.


This property reports whether or not any edits have been made in the current edit session. For example, if this property returns False, then StopEditing can be called and passed the False parameter automatically; you do not have to ask the user if they want to save their edits because you know there are none.

 If Not pEditor.HasEdits Then

pEditor.StopEditing False
'Code to prompt for Save Changes (Yes/No)
End If

See Also

IEditor Interface