ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Telecom Namespace / CircuitManager Class / Verify Method
The names of the circuits to verify.
The options that control how the circuits are verified.
Example

In This Topic
    Verify Method
    In This Topic
    Verifies the specified circuits. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    circuitNames
    The names of the circuits to verify.
    circuitVerifyOptions
    The options that control how the circuits are verified.

    Return Value

    The verification result for each circuit.
    Exceptions
    ExceptionDescription
    The list of circuit names is empty, or circuitVerifyOptions specifies a spatial reference without enabling synthesized geometries.
    circuitNames or circuitVerifyOptions is null.
    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.
    Example
    Verify a circuit to check for inconsistencies in the utility network
    await QueuedTask.Run(() =>
    {
      using (CircuitManager circuitManager = utilityNetwork.GetCircuitManager(telecomDomainNetwork))
      {
        IReadOnlyList<CircuitVerifyResult> circuitVerifyResults = circuitManager.Verify(circuitNames, new CircuitVerifyOptions() { SynthesizeGeometries = true });
    
        // Iterate through the circuit verification results
        foreach (CircuitVerifyResult circuitVerifyResult in circuitVerifyResults)
        {
          Console.WriteLine($"Circuit Name: {circuitVerifyResult.Name}, Geometry: {circuitVerifyResult.Geometry.ToJson()}, " +
                                  $"HasError: {circuitVerifyResult.HasError}, Message: {circuitVerifyResult.Message}");
        }
      }
    });
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also