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

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

    Property Value

    true if the EditOperation has no methods set before executing.
    Remarks
    This is used internally before executing the operation to test if any methods have been set.
    Example
    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)
      opEdit.Execute();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also