ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / Propagator Class / Propagator Constructor / Propagator Constructor(NetworkAttribute,PropagatorFunction,Operator,Double)
The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute to propagate downstream from the source.
The function that is applied to the ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute to propagate the attribute downstream.
The filter operator that is applied when executing the trace. This operator is used to compare the propagated value to the specified Value.
The value that is compared against the propagated value when executing the trace.
Example

In This Topic
    Propagator Constructor(NetworkAttribute,PropagatorFunction,Operator,Double)
    In This Topic
    Initializes a new instance of the Propagator class.
    Syntax

    Parameters

    networkAttribute
    The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute to propagate downstream from the source.
    propagatorFunction
    The function that is applied to the ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute to propagate the attribute downstream.
    comparisonOperator
    The filter operator that is applied when executing the trace. This operator is used to compare the propagated value to the specified Value.
    value
    The value that is compared against the propagated value when executing the trace.
    Exceptions
    ExceptionDescription
    networkAttribute is null.

    propagatorFunction is not a field of PropagatorFunction.

    -or-

    comparisonOperator is not a field of Operator.

    value is invalid, e.g., it is not a number.
    Example
    Create a Propagator
    // Get a NetworkAttribute object for the Phases Normal attribute from the UtilityNetworkDefinition
    using (NetworkAttribute normalPhaseAttribute = utilityNetworkDefinition.GetNetworkAttribute("Phases Normal"))
    {
      // Create a propagator to propagate the Phases Normal attribute downstream from the source, using a Bitwise And function
      // Allow traversal to continue as long as the Phases Normal value includes any of the ABC phases
      // (represented by the constant ABCPhase)
      Propagator phasePropagator = new Propagator(normalPhaseAttribute, PropagatorFunction.BitwiseAnd, Operator.IncludesAny, ABCPhase);
    
      // Assign this propagator to our trace configuration
      traceConfiguration.Propagators = new List<Propagator>() { phasePropagator };
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also