ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / AttributeRuleDefinition Class / GetSeverity Method

In This Topic
    GetSeverity Method
    In This Topic
    Gets the severity of the error if the rule is violated. This is applicable to validation rule types only. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int GetSeverity()
    Public Function GetSeverity() As Integer

    Return Value

    The severity of the error.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    A geodatabase-related exception has occurred.
    Remarks
    A value within the range of 1 through 5 can be chosen to define the severity of the rule. A value of 1 is high, being the most severe, and a value of 5 is low, being the least severe. If the rule is not a validation rule, the value returned is -1.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also