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


INAODCostMatrix.Value Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAODCostMatrix Interface > INAODCostMatrix.Value Property
ArcGIS Developer Help

INAODCostMatrix.Value Property

Retrieves the cost value for a given origin and destination. The attribute index is with respect to the array of cost attribute names returned by CostAttributeNames.

[Visual Basic .NET]
Public Function get_Value ( _
    ByVal originIndex As Integer, _
    ByVal destinationIndex As Integer, _
    ByVal attributeIndex As Integer _
) As Double
[C#]
public double get_Value (
    int originIndex,
    int destinationIndex,
    int attributeIndex
);
[C++]
HRESULT get_Value(
  long originIndex,
  long destinationIndex,
  long attributeIndex,
  System.Double* Value
);
[C++]
Parameters
originIndex [in]

originIndex is a parameter of type long destinationIndex [in]
destinationIndex is a parameter of type long attributeIndex [in]
attributeIndex is a parameter of type long Value [out, retval]
Value is a parameter of type double*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

This returns a value of the matrix entry for a given origin, destination, and cost attribute. The cost attribute is specified as an index based on the cost attributes names.

See Also

INAODCostMatrix Interface