This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAODCostMatrix Interface > INAODCostMatrix.QueryRankedDestinationIndices Method (ArcObjects .NET 10.5 SDK) |
For a given origin, retrieves the indices of the populated destinations in increasing rank.
[Visual Basic .NET] Public Sub QueryRankedDestinationIndices ( _ ByVal originIndex As Integer, _ ByVal destinationIndices As ILongArray _ )
[C#] public void QueryRankedDestinationIndices ( int originIndex, ILongArray destinationIndices );
[C++]
HRESULT QueryRankedDestinationIndices(
long originIndex,
ILongArray* destinationIndices
);
[C++]
Parameters originIndex [in] originIndex is a parameter of type long destinationIndices [in, out]
destinationIndices is a parameter of type ILongArray
For a given origin (passed in by index), QueryRankedDestinationIndices retrieves the indices of the populated destinations in increasing rank as an ILongArray. "Populated destinations" are the destinations for which a valid network path from the specified origin to the specified destination has been determined. The destinations are ranked increasingly from least to greatest total cost of the network path from the origin to the destination.
An origin's index can be retrieved via the FindOriginIndex method.