ArcGIS Pro 3.0 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

In This Topic
    CategoryComparison Constructor
    In This Topic
    Initializes a new instance of the CategoryComparison class.
    Syntax
    public CategoryComparison( 
       CategoryOperator comparisonOperator,
       string category
    )
    Public Function New( _
       ByVal comparisonOperator As CategoryOperator, _
       ByVal category As String _
    )

    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, Windows 8.1

    See Also