ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / Result Class
Members Example

In This Topic
    Result Class
    In This Topic
    The Result object returns information from a trace.
    Syntax
    Public MustInherit Class Result 
    public abstract class Result 
    Example
    Trace a utility network using a named trace configuration
    {
      // This routine demonstrates how to perform a trace using a named trace configuration from a utility network
      static void TraceUtilityNetworkUsingNamedTraceConfiguration(UtilityNetwork utilityNetwork, NamedTraceConfiguration namedTraceConfiguration, Element startElement)
      {
        // Get the trace manager from the utility network
        using (TraceManager traceManager = utilityNetwork.GetTraceManager())
        {
          // Get a tracer from the trace manager using the named trace configuration
          Tracer upstreamTracer = traceManager.GetTracer(namedTraceConfiguration);
    
          // Trace argument holding the trace input parameters
          TraceArgument upstreamTraceArgument = new TraceArgument(namedTraceConfiguration, new List<Element> { startElement });
    
          // Trace results
          IReadOnlyList<Result> upstreamTraceResults = upstreamTracer.Trace(upstreamTraceArgument);
        }
      }
    }
    Inheritance Hierarchy
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also