public sealed class NetworkAttributeComparison : ConditionalExpression
Public NotInheritable Class NetworkAttributeComparison Inherits ConditionalExpression
public sealed class NetworkAttributeComparison : ConditionalExpression
Public NotInheritable Class NetworkAttributeComparison Inherits ConditionalExpression
// Create a NetworkAttribute object for the Lifecycle network attribute from the UtilityNetworkDefinition using (NetworkAttribute lifecycleNetworkAttribute = utilityNetworkDefinition.GetNetworkAttribute("Lifecycle")) { // Create a NetworkAttributeComparison that stops traversal if Lifecycle <> "In Design" (represented by the constant InDesign) NetworkAttributeComparison inDesignNetworkAttributeComparison = new NetworkAttributeComparison(lifecycleNetworkAttribute, Operator.NotEqual, InDesign); // Create a NetworkAttributeComparison to stop traversal if Lifecycle <> "In Service" (represented by the constant InService) NetworkAttributeComparison inServiceNetworkAttributeComparison = new NetworkAttributeComparison(lifecycleNetworkAttribute, Operator.NotEqual, InService); // Combine these two comparisons together with "And" And lifecycleFilter = new And(inDesignNetworkAttributeComparison, inServiceNetworkAttributeComparison); // Final condition stops traversal if Lifecycle <> "In Design" and Lifecycle <> "In Service" traceConfiguration.Traversability.Barriers = lifecycleFilter; }
System.Object
ArcGIS.Core.Data.UtilityNetwork.Trace.Condition
ArcGIS.Core.Data.UtilityNetwork.Trace.ConditionalExpression
ArcGIS.Core.Data.UtilityNetwork.Trace.NetworkAttributeComparison
Target Platforms: Windows 11, Windows 10, Windows 8.1