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


INAODCostMatrix.QueryRankedDestinationIndices Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAODCostMatrix.QueryRankedDestinationIndices Method

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

Product Availability

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

Remarks

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.

See Also

INAODCostMatrix Interface