ArcGIS Pro 2.7 API Reference Guide
ShortestPathNetworkAttribute Property

ArcGIS.Core.Data.UtilityNetwork.Trace Namespace > TraceConfiguration Class : ShortestPathNetworkAttribute Property
The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute used to calculate the shortest path when using the ShortestPathTracer.
Syntax
public NetworkAttribute ShortestPathNetworkAttribute {get; set;}
Public Property ShortestPathNetworkAttribute As NetworkAttribute
Remarks
Typically, Shape Length is used. One counterexample might be if you are looking for the shortest path through an underground system. You might prefer a longer path via duct banks, versus a shorter path through a trench that requires excavation, since the excavation might be more costly. In this case, you would set up a network attribute that represents these costs.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

TraceConfiguration Class
TraceConfiguration Members