utilityNetwork property

UtilityNetwork? get utilityNetwork

The UtilityNetwork managed by the feature service.

This property is null unless the feature service contains a utility network and this ServiceGeodatabase has been used to create an UtilityNetwork. When loading a map, the UtilityNetwork is created and linked automatically as part of the map load. When a ServiceGeodatabase is created outside of a map, use UtilityNetwork.new to create and link the utility network explicitly.

The service geodatabase manages the utility network's service connection and branch version but does not keep the utility network alive. This property is null when the map or app no longer holds the utility network. A null value does not indicate whether the feature service contains a utility network.