ArcObjects Library Reference (GeoDatabase)  

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
[C#]
public object QueryValue (
    INetworkElement Element,
    IRow Row
);
[C++]
HRESULT QueryValue(
  INetworkElement* Element,
  IRow* Row,
  VARIANT* resultValue
);
[C++]

Parameters

Element [in]

  Element is a parameter of type INetworkElement

Row [in]

  Row is a parameter of type IRow

resultValue [out, retval]   resultValue is a parameter of type VARIANT

Product Availability

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

Remarks

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