ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / TraceConfiguration Class / Filter Property
Version

Filter Property (TraceConfiguration)
Defines filter criteria for the trace.
Syntax
public Filter Filter {get;}
Remarks
Filters are a mechanism to stop tracing when returning results. They do not stop traversability to the controller. For example, let's assume you want to write a trace to find the next upstream protective device in an electrical network. You would do this by creating a CategoryComparison object to stop when a feature is found that is assigned the "Protective Device" category. If you entered this in Traversability.Barriers then the trace would be unable to find a subnetwork controller to determine which direction was upstream. The correct way to implement this is by entering this CategoryComparison into Barriers.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also