ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Data Namespace / Geodatabase Class / ApplyEdits Method / ApplyEdits(Action,Boolean) Method
Saves the edits undertaken by this delegate to the underlying geodatabase.
Declares whether to perform the transaction in a versioned or non-versioned edit session mode. This applies only for enterprise geodatabases.

In This Topic
    ApplyEdits(Action,Boolean) Method
    In This Topic
    Executes the action delegate as a single transaction in a given versioned edit session mode. The transaction either completes successfully or is aborted and rolled back.
    Syntax
    public void ApplyEdits( 
       Action action,
       bool isVersionedEditSession
    )
    Public Overloads Sub ApplyEdits( _
       ByVal action As Action, _
       ByVal isVersionedEditSession As Boolean _
    ) 

    Parameters

    action
    Saves the edits undertaken by this delegate to the underlying geodatabase.
    isVersionedEditSession
    Declares whether to perform the transaction in a versioned or non-versioned edit session mode. This applies only for enterprise geodatabases.
    Exceptions
    ExceptionDescription
    No valid geodatabase has been opened prior to invoking this operation.
    This operation is not supported in client-server mode.
    action is null.
    A transaction-related exception has occurred.
    A geodatabase-related exception has occurred.
    The exception propagated by the action delegate.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also