ArcGIS Pro 2.6 API Reference Guide
Filter Property (TraceConfiguration)

ArcGIS.Core.Data.UtilityNetwork.Trace Namespace > TraceConfiguration Class : Filter Property
Defines filter criteria for the trace.
Syntax
public Filter Filter {get;}
Public ReadOnly Property Filter As Filter
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 10, Windows 8.1, Windows 7

See Also

Reference

TraceConfiguration Class
TraceConfiguration Members