ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / TraceConfiguration Class / Functions Property
Example

In This Topic
    Functions Property
    In This Topic
    A list of Functions to compute while executing the trace.
    Syntax
    Public Property Functions As IReadOnlyList(Of Function)
    public IReadOnlyList<Function> Functions {get; set;}
    Example
    Create a Function
    {
      // This routine creates an Add function to sum the Load network attribute during a trace
      static void ApplyFunction(UtilityNetworkDefinition utilityNetworkDefinition, TraceConfiguration traceConfiguration)
      {
        // Get a NetworkAttribute object for the Load network attribute from the UtilityNetworkDefinition
        using NetworkAttribute loadNetworkAttribute = utilityNetworkDefinition.GetNetworkAttribute("Load");
        // Create a function to sum the Load
        Add sumLoadFunction = new Add(loadNetworkAttribute);
    
        // Add this function to our trace configuration
        traceConfiguration.Functions = new List<Function>() { sumLoadFunction };
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also