This document is archived and information here might be outdated.  Recommended version.


INetworkFieldEvaluator Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkFieldEvaluator Interface
ArcGIS Developer Help

INetworkFieldEvaluator Interface

Provides access to members that specify the properties of a network attribute evaluator whose values are derived from object field attributes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Method GetExpression Gets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator.
Method SetExpression Sets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator.

Classes that implement INetworkFieldEvaluator

Classes Description
NetworkFieldEvaluator A container for describing a network attribute evaluator whose values are derived from object field attributes.

Remarks

The INetworkFieldEvaluator interface accesses the code used by a NetworkFieldEvaluator object for calculating the attribute value for a network element.  Any setup computations needed prior to calculate the attribute value are specified in the preLogic parameter.  The value of the attribute is computed from the expression.

The example below shows the preLogic and expression for determining the direction of travel based on a string field named One_way:

     restricted = False
        Select Case UCase([One_way])
          Case "N", "TF", "T": restricted = True
        End Select
     restricted