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

In This Topic
    FunctionOutputs Property
    In This Topic
    Returns a collection of FunctionOutput information from a trace.
    Syntax
    Public ReadOnly Property FunctionOutputs As IReadOnlyList(Of FunctionOutput)
    public IReadOnlyList<FunctionOutput> FunctionOutputs {get;}
    Remarks
    One FunctionOutput object is returned for each Function that was included in the TraceConfiguration input.
    Example
    Using Function Results
    {
      // This routine demonstrates how to extract function results from trace results
      static void UseFunctionResults(IReadOnlyList<Result> traceResults)
      {
        // Get the FunctionOutputResult from the trace results
        FunctionOutputResult functionOutputResult = traceResults.OfType<FunctionOutputResult>().First();
    
        // First() can be used here if only one Function was included in the TraceConfiguration.Functions collection.
        // Otherwise you will have to search the list for the correct FunctionOutput object.
        FunctionOutput functionOutput = functionOutputResult.FunctionOutputs.First();
    
        // Extract the total load from the GlobalValue property
        double totalLoad = (double)functionOutput.Value;
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also