ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / CoreDataExtensions Class / EvaluateInEditOperation Method
The AttributeRuleManager instance to manage attribute rules on behalf of a geodatabase.
The AttributeRuleEvaluationDescription which describes the details of the evaluate operation.

In This Topic
    EvaluateInEditOperation Method
    In This Topic
    Evaluates all the applicable tables and feature classes in the geodatabase associated with attributeRuleManager using the operation(s) specified by description. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    attributeRuleManager
    The AttributeRuleManager instance to manage attribute rules on behalf of a geodatabase.
    description
    The AttributeRuleEvaluationDescription which describes the details of the evaluate operation.

    Return Value

    An AttributeRuleEvaluationResult that describes the result of the operation(s).
    Exceptions
    ExceptionDescription

    Cannot find a layer in the active map that connects to the same geodatabase as that of the Attribute Rule Manager.

    -or-

    This geodatabase does not support attribute rule evaluation.

    -or-

    If the geodatabase is opened from the Default version and ArcGIS.Core.Data.VersionEvaluationScope.ChangesInVersion is specified for the VersionEvaluationScope argument in ArcGIS.Core.Data.AttributeRuleEvaluationDescription(AttributeRuleType, VersionEvaluationScope).

    This method must be called on the Main CIM Thread. Use QueuedTask.Run.
    A geodatabase-related exception has occurred.
    Remarks
    • This routine creates its own edit operation, and can therefore not be called within an existing transaction.
    • If this operation is successful, it will create an edit operation on the Pro undo/redo stack, invalidate the affected layers and cause the ArcGIS.Desktop.Mapping.MapView to redraw. When writing a CoreHost application, use AttributeRuleManager.Evaluate.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also