ArcGIS Pro 2.8 API Reference Guide
HasEdits Method

ArcGIS.Core.Data Namespace > Datastore Class : HasEdits Method
Determines whether the currently opened data store (e.g., an enterprise geodatabase) has any pending edits which have not been saved. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool HasEdits()
Public Function HasEdits() As Boolean

Return Value

true if the currently opened data store (e.g., an enterprise geodatabase) has pending unsaved edits; otherwise, false.
Exceptions
ExceptionDescription
No valid data store has been opened or the type of data store is currently not supported prior to invoking this operation.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Datastore Class
Datastore Members