Show / Hide Table of Contents

Method Create

Create(UtilityNetworkAttribute, Int32, IEnumerable<UtilityAssetType>)

Creates a filter object to return the next N features from the starting point with nearest asset types.

Declaration
public static UtilityNearestNeighbor Create(UtilityNetworkAttribute costNetworkAttribute, int count, IEnumerable<UtilityAssetType> nearestAssetTypes)
Parameters
Type Name Description
UtilityNetworkAttribute costNetworkAttribute

The UtilityNetworkAttribute used to determine the definition of "nearest".

Int32 count

The number of nearest features to return.

IEnumerable<UtilityAssetType> nearestAssetTypes

The collection of UtilityAssetType that are used to define features to return.

Returns
Type Description
UtilityNearestNeighbor

A UtilityNearestNeighbor with nearest asset types.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.14

Create(UtilityNetworkAttribute, Int32, IEnumerable<UtilityAssetType>, IEnumerable<UtilityCategory>)

Creates a filter object to return the next N features from the starting point with nearest asset types and nearest categories.

Declaration
public static UtilityNearestNeighbor Create(UtilityNetworkAttribute costNetworkAttribute, int count, IEnumerable<UtilityAssetType> nearestAssetTypes, IEnumerable<UtilityCategory> nearestCategories)
Parameters
Type Name Description
UtilityNetworkAttribute costNetworkAttribute

The UtilityNetworkAttribute used to determine the definition of "nearest".

Int32 count

The number of nearest features to return.

IEnumerable<UtilityAssetType> nearestAssetTypes

The collection of UtilityAssetType that are used to define features to return.

IEnumerable<UtilityCategory> nearestCategories

The collection of UtilityCategory that are used to define features to return.

Returns
Type Description
UtilityNearestNeighbor

A UtilityNearestNeighbor with nearest asset types and nearest categories.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.14

Create(UtilityNetworkAttribute, Int32, IEnumerable<UtilityCategory>)

Creates a filter object to return the next N features from the starting point with nearest categories.

Declaration
public static UtilityNearestNeighbor Create(UtilityNetworkAttribute costNetworkAttribute, int count, IEnumerable<UtilityCategory> nearestCategories)
Parameters
Type Name Description
UtilityNetworkAttribute costNetworkAttribute

The UtilityNetworkAttribute used to determine the definition of "nearest".

Int32 count

The number of nearest features to return.

IEnumerable<UtilityCategory> nearestCategories

The collection of UtilityCategory that are used to define features to return.

Returns
Type Description
UtilityNearestNeighbor

A UtilityNearestNeighbor with nearest categories.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.8 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.8 - 100.12
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 100.14
In This Article
Back to top Copyright © 2022 Esri.