ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / GetTraceManager Method
Example

In This Topic
    GetTraceManager Method
    In This Topic
    Gets a ArcGIS.Core.Data.UtilityNetwork.Trace.TraceManager object used to perform traces. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TraceManager GetTraceManager()
    Public Function GetTraceManager() As TraceManager

    Return Value

    A ArcGIS.Core.Data.UtilityNetwork.Trace.TraceManager object that can be used to perform traces.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    Create a DownstreamTracer
    using (TraceManager traceManager = utilityNetwork.GetTraceManager())
    {
      DownstreamTracer downstreamTracer = traceManager.GetTracer<DownstreamTracer>();
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also