ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetworkExtensions Class / ValidateNetworkTopologyInEditOperation Method / ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry) 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.
Version

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

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.

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 or property must be called within the lambda passed to QueuedTask.Run.
A geodatabase-related exception has occurred.
Remarks
  • This routine creates its own edit operation, and can therefore not be called within an existing transaction.
  • If this operation is successful, it will create an edit operation on the Pro undo/redo stack, invalidate the affected layers and cause the ArcGIS.Desktop.Mapping.MapView to redraw. When writing a CoreHost application, use UtilityNetwork.ValidateNetworkTopology.
  • This method defaults to ArcGIS.Core.Data.ServiceSynchronizationType.Synchronous.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also