Show / Hide Table of Contents

Property UtilityNetworks

UtilityNetworks

Gets the list of UtilityNetwork in the map.

Declaration
public IList<UtilityNetwork> UtilityNetworks { get; }
Property Value
Type Description
IList<UtilityNetwork>

The list of UtilityNetwork in the map.

Remarks

This collection of UtilityNetwork is specific to this map.

A Map created with a webmap portal item with utility networks will pre-populate this collection.

When this Map is used to create a UtilityNetwork, the UtilityNetwork that was created will be added to this collection.

Only a UtilityNetwork that is not loaded may be added to this collection. An attempt to add a UtilityNetwork that is loaded or loading will throw an InvalidOperationException.

An attempt to add a UtilityNetwork that is already part of a UtilityNetworks to this collection will throw an ArcGISRuntimeException with "Already owned" error message.

An attempt to add a null UtilityNetwork to this collection will throw an ArgumentNullException.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.10 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Android100.10 - 100.15
iOS100.10 - 100.15
UWP100.10 - 200.0
In This Article
Back to top Copyright © 2022 Esri.