ArcGIS Pro 2.7 API Reference Guide
ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry) Method

ArcGIS.Core.Data.UtilityNetwork.Extensions Namespace > UtilityNetworkExtensions Class > ValidateNetworkTopologyInEditOperation Method : ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry) Method
The ArcGIS.Core.Data.UtilityNetwork.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.
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
)
Public Overloads Shared Function ValidateNetworkTopologyInEditOperation( _
   ByVal utilityNetwork As UtilityNetwork, _
   ByVal extent As Geometry _
) As ValidationResult

Parameters

utilityNetwork
The ArcGIS.Core.Data.UtilityNetwork.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 ArcGIS.Core.Data.UtilityNetwork.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 10, Windows 8.1

See Also

Reference

UtilityNetworkExtensions Class
UtilityNetworkExtensions Members
Overload List