ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / UtilityNetworkLayer Class / GetNamedTraceConfigurations Method
Example

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.
Syntax
public IReadOnlyList<NamedTraceConfiguration> GetNamedTraceConfigurations()

Return Value

The list of named trace configurations associated with the layer.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Could not get the named trace configurations.
Example
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
  }
}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.9 or higher.
See Also