ArcGIS Pro 2.6 API Reference Guide
NearestNeighbor Constructor(NetworkAttribute,Int32,IReadOnlyList<AssetType>)

ArcGIS.Core.Data.UtilityNetwork.Trace Namespace > NearestNeighbor Class > NearestNeighbor Constructor : NearestNeighbor Constructor(NetworkAttribute,Int32,IReadOnlyList<AssetType>)
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 set of ArcGIS.Core.Data.UtilityNetwork.AssetType objects.
Creates a new instance of the NearestNeighbor class, defined by asset types.
Syntax

Parameters

costNetworkAttribute
The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute used to determine the definition of "nearest."
count
The number of nearest rows to return.
nearestAssetTypes
The nearest rows to return by the trace are defined by a set of ArcGIS.Core.Data.UtilityNetwork.AssetType objects.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

NearestNeighbor Class
NearestNeighbor Members
Overload List