ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetworkExtensions Class / ValidateNetworkTopologyInEditOperation Method / ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry,ServiceSynchronizationType) Method
The UtilityNetwork instance whose network topology to validate.
The extent of the area to be validating. If this parameter is missing or null, the entire extent of the utility network is used.
Specifies which implementation of the service endpoint to call. This parameter is ignored for non-services based utility networks.

ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry,ServiceSynchronizationType) Method
Validates the utility network topology in an edit operation. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

utilityNetwork
The UtilityNetwork instance whose network topology to validate.
extent
The extent of the area to be validating. If this parameter is missing or null, the entire extent of the utility network is used.
serviceSynchronizationType
Specifies which implementation of the service endpoint to call. This parameter is ignored for non-services based utility networks.

Return Value

A ValidationResult that describes the result of the operation.
Exceptions
ExceptionDescription

The active ArcGIS.Desktop.Mapping.MapView is unavailable.

-or-

The ArcGIS.Desktop.Mapping.UtilityNetworkLayer is unavailable.

This method must be called on the Main CIM Thread. Use QueuedTask.Run.
A geodatabase-related exception has occurred.
Remarks
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also