ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Data Namespace / AttributeRuleManager Class / Evaluate Method
The AttributeRuleEvaluationDescription which describes the details of the evaluate operation.

In This Topic
    Evaluate Method (AttributeRuleManager)
    In This Topic
    Evaluates all the applicable tables and feature classes in this geodatabase using the operation(s) specified by description in the validation service. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    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
    If description has an extent, then the extent must have a ArcGIS.Core.Geometry.SpatialReference.

    A validation service is not supported or enabled for this geodatabase.

    -or-

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

    description is null.
    A geodatabase-related exception has occurred.
    Remarks
    • If IsEvaluationSupported returns false, calling this method will result in an exception.
    • Calling this routine does not update any existing Row objects- these rows must be re-fetched in order to see any changes to calculated fields or to the ValidationStatus field.
    • This routine generates its own editing transaction and therefore cannot be wrapped inside a separate transaction.
    • When writing an ArcGIS Pro add-in, the extension method CoreDataExtensions.EvaluateInEditOperation should be used instead. This extension method will create an edit operation on the Pro undo/redo stack and redraw any affected layers.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also