ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetworkExtensions Class / ValidateNetworkTopologyInEditOperation Method / ValidateNetworkTopologyInEditOperation(UtilityNetwork,IEnumerable<Selection>,ServiceSynchronizationType) Method
The UtilityNetwork instance whose network topology to validate.
The set of features/objects to validate. This must be GlobalID-based.
Specifies which implementation of the service endpoint to call. This parameter is ignored for non-services based utility networks.

In This Topic
    ValidateNetworkTopologyInEditOperation(UtilityNetwork,IEnumerable<Selection>,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

    Parameters

    utilityNetwork
    The UtilityNetwork instance whose network topology to validate.
    selections
    The set of features/objects to validate. This must be GlobalID-based.
    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.6 or higher.
    See Also