ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / Datastore Class / HasEdits Method

In This Topic
    HasEdits Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also