This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAODCostMatrix Interface > INAODCostMatrix.QueryValues Method (ArcObjects .NET 10.4 SDK) |
Retrieves the cost values of all cost attributes for the given origin and destination.
[Visual Basic .NET] Public Sub QueryValues ( _ ByVal originIndex As Integer, _ ByVal destinationIndex As Integer, _ ByVal values As IDoubleArray _ )
[C#] public void QueryValues ( int originIndex, int destinationIndex, IDoubleArray values );
[C++]
HRESULT QueryValues(
long originIndex,
long destinationIndex,
IDoubleArray* values
);
[C++]
Parameters originIndex [in] originIndex is a parameter of type long destinationIndex [in] destinationIndex is a parameter of type long values [in, out]
values is a parameter of type IDoubleArray
QueryValues populates an IDoubleArray with the values of all associated cost attributes for a given origin and destination. Each value is the total accumulated cost of travel along the network dataset from the origin to the destination for a specific cost attribute.