ArcGIS Pro 3.2 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.

In This Topic
    ValidateNetworkTopologyInEditOperation(UtilityNetwork,Geometry,ServiceSynchronizationType) Method
    In This Topic
    Validates the utility network topology in an edit operation. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Shared Function ValidateNetworkTopologyInEditOperation( _
       ByVal utilityNetwork As UtilityNetwork, _
       ByVal extent As Geometry, _
       ByVal serviceSynchronizationType As ServiceSynchronizationType _
    ) As ValidationResult

    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 or property must be called within the lambda passed to QueuedTask.Run.
    A geodatabase-related exception has occurred.
    Remarks
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also