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

ArcGIS.Core.Data.UtilityNetwork.Extensions Namespace > UtilityNetworkExtensions Class > ValidateNetworkTopologyInEditOperation Method : ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry,InvocationTarget) 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.
Specifies which implementation of the service endpoint to call. This parameter is ignored for non-services based utility networks.
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,
   InvocationTarget invocationTarget
)
Public Overloads Shared Function ValidateNetworkTopologyInEditOperation( _
   ByVal utilityNetwork As UtilityNetwork, _
   ByVal extent As Geometry, _
   ByVal invocationTarget As InvocationTarget _
) 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.
invocationTarget
Specifies which implementation of the service endpoint to call. This parameter is ignored for non-services based utility networks.

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, Windows 7

See Also

Reference

UtilityNetworkExtensions Class
UtilityNetworkExtensions Members
Overload List