This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAODCostMatrix Interface > INAODCostMatrix.Value Property (ArcObjects .NET 10.4 SDK) |
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,
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
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.