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

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

INetworkEvaluatorSetup.QueryValue Method

Evaluates the attribute value of a network element.

[Visual Basic .NET]
Public Function QueryValue ( _
    ByVal Element As INetworkElement, _
    ByVal Row As IRow _
) As Object
public object QueryValue (
    INetworkElement Element,
    IRow Row
HRESULT QueryValue(
  INetworkElement* Element,
  IRow* Row
Element [in]

Element is a parameter of type INetworkElement* Row [in]
Row is a parameter of type IRow*

Product Availability

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


QueryValue uses this evaluator to compute the attribute value for the given network element.

The Element and Row parameters are provided in order to query any information from the network element or from the Row (such as field values) corresponding to the given network element when computing the attribute value.

When computing attribute values that will be cached within the network, QueryValue is automatically called by the system when building the network dataset, and the Row from the corresponding source feature will be passed into QueryValue in the Row parameter and null will be passed into the Element parameter.  When querying non-cached attribute values via the INetworkElement interface, the system will pass in the network element into the Element parameter and null will be passed into the Row parameter.

Before calling QueryValue, the evaluator must first be initialized by calling the Initialize method.  After calling Initialize, QueryValue can be called multiple times to calculate attribute values for multiple network elements.

See Also

INetworkEvaluatorSetup Interface