ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetworkExtensions Class / ValidateNetworkTopologyInEditOperation Method / ValidateNetworkTopologyInEditOperation(UtilityNetwork,IEnumerable<Selection>) Method
The UtilityNetwork instance whose network topology to validate.
The set of features/objects to validate. This must be GlobalID-based.

In This Topic
    ValidateNetworkTopologyInEditOperation(UtilityNetwork,IEnumerable<Selection>) 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 selections As IEnumerable(Of Selection) _
    ) As ValidationResult
    public static ValidationResult ValidateNetworkTopologyInEditOperation( 
       UtilityNetwork utilityNetwork,
       IEnumerable<Selection> selections
    )

    Parameters

    utilityNetwork
    The UtilityNetwork instance whose network topology to validate.
    selections
    The set of features/objects to validate. This must be GlobalID-based.

    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.6 or higher.
    See Also