Public Property Functions As IReadOnlyList(Of Function)
public IReadOnlyList<Function> Functions {get; set;}
Public Property Functions As IReadOnlyList(Of Function)
public IReadOnlyList<Function> Functions {get; set;}
{
// 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 };
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)