ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / ValidateNetworkTopology Method / ValidateNetworkTopology(Geometry,ServiceSynchronizationType) Method
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
    ValidateNetworkTopology(Geometry,ServiceSynchronizationType) Method
    In This Topic
    Validates the utility network topology within the provided extent. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Function ValidateNetworkTopology( _
       ByVal extent As Geometry, _
       ByVal serviceSynchronizationType As ServiceSynchronizationType _
    ) As ValidationResult

    Parameters

    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
    This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress.
    serviceSynchronizationType is invalid.
    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.
    • Note that regardless of the ArcGIS.Core.Data.ServiceSynchronizationType used, this C# routine is still synchronous; the current thread will block until the routine completes.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also