ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / ValidateNetworkTopology Method / ValidateNetworkTopology(Geometry,ServiceSynchronizationType,ValidationType) 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.
Specifies the type of validation.

In This Topic
    ValidateNetworkTopology(Geometry,ServiceSynchronizationType,ValidationType) Method
    In This Topic
    Validates the utility network topology within the provided extent according to the provided validation type. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    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.
    validationType
    Specifies the type of validation.

    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 and/or validationType are 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.
    • 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

    ArcGIS Pro version: 3.3 or higher.
    See Also