ArcGIS Pro 3.0 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 IReadOnlyList<Function> Functions {get; set;}
    Public Property Functions As IReadOnlyList(Of Function)
    Example
    Create a Function
    // 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, Windows 10, Windows 8.1

    See Also