This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.HasEdits Method (ArcObjects .NET 10.5 SDK) |
Indicates if edits have been made.
[Visual Basic .NET] Public Function HasEdits ( _ ) As Boolean
[C#] public bool HasEdits ( );
[C++]
HRESULT HasEdits(
VARIANT_BOOL* HasEdits
);
[C++]
Parameters HasEdits [out, retval] HasEdits is a parameter of type VARIANT_BOOL
This property reports whether or not any edits have been made in the current edit session. For example, if this property returns False then editing can be stopped without saving the changes by calling IEngineEditor::StopEditing with the False parameter.
if
(m_EngineEditor.HasEdits() ==false
) m_EngineEditor.StopEditing(false
);else
{//Code to prompt for Save Changes (Yes/No)
}
If
(m_EngineEditor.HasEdits()=False
)Then
m_EngineEditor.StopEditing(False
)Else
'Code to prompt for Save Changes (Yes/No)
End
If