ArcGIS Pro 2.9 API Reference Guide
NearestNeighbor Constructor(NetworkAttribute,Int32,IReadOnlyList<String>)

ArcGIS.Core.Data.UtilityNetwork.Trace Namespace > NearestNeighbor Class > NearestNeighbor Constructor : NearestNeighbor Constructor(NetworkAttribute,Int32,IReadOnlyList<String>)
The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute used to determine the definition of "nearest".
The number of nearest rows to return.
The nearest rows to return by the trace are defined by a list of Category strings.
Creates a new instance of the NearestNeighbor class, defined by categories.
Syntax

Parameters

costNetworkAttribute
The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute used to determine the definition of "nearest".
count
The number of nearest rows to return.
nearestCategories
The nearest rows to return by the trace are defined by a list of Category strings.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

NearestNeighbor Class
NearestNeighbor Members
Overload List