ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / CategoryComparison Class / CategoryComparison Constructor
The CategoryOperator to use (equals, not equals).
The Category to use in the comparison.
Example Version

    CategoryComparison Constructor
    Initializes a new instance of the CategoryComparison class.
    Syntax
    public CategoryComparison( 
       CategoryOperator comparisonOperator,
       string category
    )

    Parameters

    comparisonOperator
    The CategoryOperator to use (equals, not equals).
    category
    The Category to use in the comparison.
    Example
    Create an output condition
    // Create an output category to filter the trace results to only include
    // features with the "Service Point" category assigned
    traceConfiguration.OutputCondition = new CategoryComparison(CategoryOperator.IsEqual, "Service Point");
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also