ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / IsEmpty Property

In This Topic
    IsEmpty Property (EditOperation)
    In This Topic
    Gets a value indicating if the EditOperation is empty.
    public bool IsEmpty {get;}
    Public ReadOnly Property IsEmpty As Boolean

    Property Value

    true if the EditOperation has no methods set before executing.
    This is used internally before executing the operation to test if any methods have been set.
    Edit Operation - check for actions before Execute
    // Some times when using EditOperation.Modify you can unknowingly be attempting to set
    //  an attribute to value 
    //  setting 
    // In this scenario the Modify action will detect that nothing is required
    // and do nothing. Because no actions have occurred, the
    // Consequently the Execute operation will fail. 
    if (!opEdit.IsEmpty)

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also