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


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

IEngineEditor.HasEdits Method

Indicates if edits have been made.

[Visual Basic .NET]
Public Function HasEdits ( _
) As Boolean
[C#]
public bool HasEdits (
);
[C++]
HRESULT HasEdits(
void
);

Product Availability

Available with ArcGIS Engine.

Description

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.

Remarks


 


 

[C#]

[C#]
if (m_EngineEditor.HasEdits() == false)
    m_EngineEditor.StopEditing(false);
else
{
    //Code to prompt for Save Changes (Yes/No)
}

[Visual Basic .NET]

[Visual Basic .NET]
If (m_EngineEditor.HasEdits() = False) Then
    m_EngineEditor.StopEditing(False)
Else
    'Code to prompt for Save Changes (Yes/No)
End If

See Also

IEngineEditor Interface

.NET Samples

Editing using a custom form