ArcGIS Pro 2.7 API Reference Guide
GetUtilityNetwork Method

ArcGIS.Desktop.Mapping Namespace > UtilityNetworkLayer Class : GetUtilityNetwork Method
Gets utility network associated with the layer. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public UtilityNetwork GetUtilityNetwork()
Public Function GetUtilityNetwork() As UtilityNetwork

Return Value

The utility network associated with the layer.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Could not open the utility network.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UtilityNetworkLayer Class
UtilityNetworkLayer Members