GetNamedTraceConfigurations Method (UtilityNetworkLayer)
Gets all of the named trace configurations within the utility network layer.
This method must be called on the MCT. Use QueuedTask.Run.
Return Value
The list of named trace configurations associated with the layer.
Fetch named trace configurations from a utility network layer
private void GetNamedTraceConfigurationsFromUtilityNetworkLayer(UtilityNetworkLayer utilityNetworkLayer)
{
// Get all named trace configurations in the utility network
IReadOnlyList<NamedTraceConfiguration> namedTraceConfigurations = utilityNetworkLayer.GetNamedTraceConfigurations();
foreach (NamedTraceConfiguration namedTraceConfiguration in namedTraceConfigurations)
{
// Use NamedTraceConfiguration's object
}
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.