ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / NearestNeighbor Class / NearestNeighbor Constructor / NearestNeighbor Constructor(NetworkAttribute,Int32,IEnumerable<String>,IEnumerable<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 list of Category strings.
The nearest rows to return by the trace are defined by a set of ArcGIS.Core.Data.UtilityNetwork.AssetType objects.

In This Topic
    NearestNeighbor Constructor(NetworkAttribute,Int32,IEnumerable<String>,IEnumerable<AssetType>)
    In This Topic
    Creates a new instance of the NearestNeighbor class, defined by both categories and 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.
    nearestCategories
    The nearest rows to return by the trace are defined by a list of Category strings.
    nearestAssetTypes
    The nearest rows to return by the trace are defined by a set of ArcGIS.Core.Data.UtilityNetwork.AssetType objects.
    Remarks
    Rows are included if they match either the category or asset type criteria.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also