ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / ValidateNetworkTopology Method / ValidateNetworkTopology() Method

In This Topic
    ValidateNetworkTopology() Method
    In This Topic
    Validates the entire utility network topology. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public ValidationResult ValidateNetworkTopology()
    Public Overloads Function ValidateNetworkTopology() As ValidationResult

    Return Value

    A ValidationResult that describes the result of the operation.
    Exceptions
    ExceptionDescription
    This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress.
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    • This routine generates its own editing transaction and therefore cannot be wrapped inside a separate transaction.
    • When writing an ArcGIS Pro add-in, the extension method UtilityNetworkExtensions.ValidateNetworkTopologyInEditOperation should be used instead. This extension method will create an edit operation on the Pro undo/redo stack and redraw any affected layers.
    • For services-based UtilityNetwork, this method defaults to use ArcGIS.Core.Data.ServiceSynchronizationType.Asynchronous. Note that this C# routine is still synchronous; the current thread will block until the routine completes.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also